cernopendata / cernopendata-client

CERN Open Data command-line client
http://cernopendata-client.readthedocs.io/
GNU General Public License v3.0
10 stars 9 forks source link

cli: get-file-locations #3

Closed tiborsimko closed 5 years ago

tiborsimko commented 5 years ago

Goal: Get list of files belonging to a dataset.

Complexity: Should resolve index files for datasets such as recid 14. The output should be data files, not data index files. (For these people could presumably use get-record --output-fields files as part of task #2).

Inputs: the same as for #2 for example --recid 14, or --doi or --title.

Outputs: list of dataset locations such as:

root://eospublic.cern.ch//eos/opendata/atlas/MasterclassDatasets/WPath/2014/1/1A.zip
root://eospublic.cern.ch//eos/opendata/atlas/MasterclassDatasets/WPath/2014/1/1B.zip

Options: --protocol root (default), --protocol http which shoud return http://opendata.cern.ch/eos/opendata/... instead of root://... paths.