Skip to content

Commit

Permalink
Added fix for downloading from a nested directory
Browse files Browse the repository at this point in the history
  • Loading branch information
wfondrie committed Sep 28, 2020
1 parent 695d86f commit c36a5af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ppx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def download(url, files=None, dest_dir=None, force_=False):
files = [files]

if dest_dir is not None:
out_files = [os.path.join(dest_dir, f) for f in files]
out_files = [os.path.join(dest_dir, os.path.split(f)[-1])
for f in files]
else:
out_files = files

Expand Down

0 comments on commit c36a5af

Please sign in to comment.