File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
packages/models-library/src/models_library
services/storage/tests/unit Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 4646)
4747
4848# Storage basic file ID
49- SIMCORE_S3_FILE_ID_RE = (
50- "^("
51- rf"api\/{ UUID_RE_BASE } \/.+"
52- "|"
53- rf"exports\/\d+\/{ UUID_RE_BASE } \.zip"
54- "|"
55- rf"{ UUID_RE_BASE } \/{ UUID_RE_BASE } \/.+"
56- ")$"
57- )
49+ SIMCORE_S3_FILE_ID_RE = rf"^(exports\/\d+\/{ UUID_RE_BASE } \.zip)|((api|({ UUID_RE_BASE } ))\/({ UUID_RE_BASE } )\/(.+)$)"
5850
5951
6052SIMCORE_S3_DIRECTORY_ID_RE = rf"^({ UUID_RE_BASE } )\/({ UUID_RE_BASE } )\/(.+)\/$"
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ def _get_folder_and_files_selection(
203203 ]
204204
205205 all_containing_folders : set [SimcoreS3FileID ] = {
206- TypeAdapter (SimcoreS3FileID ).validate_python (f"{ Path (f ).parent } / " )
206+ TypeAdapter (SimcoreS3FileID ).validate_python (f"{ Path (f ).parent } " )
207207 for f in random_files
208208 }
209209
You can’t perform that action at this time.
0 commit comments