Commit 719d77e5 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Sorted directories for pattrn based migration upload. [skip ci]

parent ac08df04
......@@ -125,7 +125,9 @@ def upload(
path = paths[0]
paths = []
compiled_pattern = re.compile(pattern)
for sub_directory in os.listdir(path):
directories = os.listdir(path)
for sub_directory in directories:
if re.fullmatch(compiled_pattern, sub_directory):
paths.append(os.path.join(path, sub_directory))
Supports Markdown
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