diff --git a/src/feelpp/benchmarking/report/config/handlers.py b/src/feelpp/benchmarking/report/config/handlers.py index 8062bc13..ca33b4b5 100644 --- a/src/feelpp/benchmarking/report/config/handlers.py +++ b/src/feelpp/benchmarking/report/config/handlers.py @@ -72,8 +72,10 @@ def upload(self, file_pattern, parent_id,leaf_folder_as_items=True,reuse_existin if return_id: items = list(self.client.listItem(folderId=parent_id, name=os.path.basename(file_pattern))) - assert len(items) >0, f"File not Found in Girder with the name {os.path.basename(file_pattern)}" + if len(items) == 0: + items = list(self.client.listFolder(parentId=parent_id, name=os.path.basename(file_pattern))) assert len(items) <=1, f"More than one file found with the same name {os.path.basename(file_pattern)}" + assert len(items) >0, f"File not Found in Girder with the name {os.path.basename(file_pattern)}" return items[0]["_id"] class ConfigHandler: