Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download fails if file contains path #34

Open
nichtich opened this issue Sep 13, 2024 · 0 comments
Open

Download fails if file contains path #34

nichtich opened this issue Sep 13, 2024 · 0 comments

Comments

@nichtich
Copy link

It looks like this script does not work properly with files in a path. For instance https://doi.org/10.5281/zenodo.4314355 contains a single file RGZM/samian-lod-2020-12-10.zip. Downloading it with

zenodo_get https://doi.org/10.5281/zenodo.4314355

fails with error in zget.py line 409:

    os.rename(filename, fname)
FileNotFoundError: [Errno 2] No such file or directory: 'samian-lod-2020-12-10.zip' -> 'RGZM/samian-lod-2020-12-10.zip'

The reason is a path (here RGZM) must be created first or rename fails.

nichtich added a commit to nichtich/zenodo_get that referenced this issue Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant