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.
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 withfails with error in
zget.py
line 409:The reason is a path (here
RGZM
) must be created first or rename fails.