Skip to content

Commit

Permalink
This closes EGA-archive#127 fixing the regex
Browse files Browse the repository at this point in the history
  • Loading branch information
afoix committed Sep 9, 2021
1 parent d159897 commit 4e89b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyega3/libs/data_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def download_file(self, output_file, num_connections=1, max_slice_size=DEFAULT_S
for chunk_start_pos in range(0, file_size, chunk_len)]

for file in os.listdir(temporary_directory):
match = re.match(r"(.*)-from-(.*)-len-(.*).*", file)
match = re.match(r"(.*)-from-(\d*)-len-(\d*).*", file)
file_id = match.group(1)
file_from = match.group(2)
file_length = match.group(3)
Expand Down

0 comments on commit 4e89b21

Please sign in to comment.