Skip to content

Commit

Permalink
fix: were not creating the outpath
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudjester committed Sep 17, 2024
1 parent fb5249a commit e073ab5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@ def download_files(
max_concurrent_requests: int,
disable_progress_bar: bool,
) -> None:
# TODO: v2 probably better to use an argument for the number
# of threads instead of using the environment variable
for filename_out in filenames_out:
parent_dir = Path(filename_out).parent
if not parent_dir.is_dir():
pathlib.Path.mkdir(parent_dir, parents=True)
if max_concurrent_requests:
run_concurrently(
_original_files_file_download,
Expand Down

0 comments on commit e073ab5

Please sign in to comment.