If Config.paths.data and Config.paths.tmp are on different filesystems, Path.rename fails.
Changes
Add a fallback that uses shutil.copyfile
This is expected to be slower with large files, as it blocks the async execution and prevents new chunks of data to be downloaded until copying is finished.
Related issue https://github.com/ESGF/esgf-download/issues/16
If
Config.paths.data
andConfig.paths.tmp
are on different filesystems,Path.rename
fails.Changes
shutil.copyfile
This is expected to be slower with large files, as it blocks the async execution and prevents new chunks of data to be downloaded until copying is finished.