-
Notifications
You must be signed in to change notification settings - Fork 9
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-files: initial release #22
Comments
Example record to support in this issue: 5500. The "harder" use case of recrord 1 with index files was separated into issue #25. |
Documenting here the options to test the download files functionality
I will be going ahead with these options and check the time taken in downloading and if they are compatible with Python 2 and 3 both. @tiborsimko Can you please provide a |
|
If a user wishes to download files belonging to a record, the current technique is to list file locations:
and then launch
wget
orcurl
commands to download them.The goal of this issue is to simplify this process by introducing new command
download-files
that would do this for the user.Possible options:
$ cernopendata-client download-files --recid 5500 --protocol http --parallel-processes 2
This would launch two parallel downloading processes, using a suitable Python library, to download the files into current directory.
P.S.: MVP is simply to download files; resuming interrupted downloads will be part of another issue, but it is good to think about this functionality upfront.
P.S. An option
--target-directory
could be introduced which would recreate directory structure known from the original record. This will be important for AOD files which have subdirectory structure such as this one. So the corresponding subdirectories would have to be created in the target directory.The text was updated successfully, but these errors were encountered: