Commit 6801cc72 by Julien Hartmann

Method listdir now gets all dirs matching the name, in all storages

parent 18553293
......@@ -128,12 +128,17 @@ class BaseFinderStorage(PipelineStorage):
return exists
def listdir(self, path):
directories, files = [], []
for finder in self.finders.get_finders():
for storage in finder.storages.values():
try:
return storage.listdir(path)
new_directories, new_files = storage.listdir(path)
except OSError:
pass
else:
directories.extend(new_directories)
files.extend(new_files)
return directories, files
def find_storage(self, name):
for finder in self.finders.get_finders():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment