Fix analysis backlog calculation for specific path on storage

We need to convert the provided path into a local storage one first,
otherwise the following scandir calls will fall on their faces.
This commit is contained in:
Gina Häußge 2017-04-03 17:18:26 +02:00
parent b24851ca05
commit 8cbf5a74b3

View file

@ -489,6 +489,9 @@ class LocalFileStorage(StorageInterface):
return self.analysis_backlog_for_path()
def analysis_backlog_for_path(self, path=None):
if path:
path = self.sanitize_path(path)
for entry in self._analysis_backlog_generator(path):
yield entry