Commit f62736eb by Timothée Peignier

improve logic

parent 06731177
......@@ -86,7 +86,7 @@ class BaseFinderStorage(PipelineStorage):
def find_storage(self, name):
for finder in finders.get_finders():
for path, storage in finder.list([]):
if os.path.dirname(name) in path:
if path.startswith(os.path.dirname(name)):
return storage
return None
......
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