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

Verbose mode in get-file-locations #138

Closed psaiz closed 11 months ago

psaiz commented 11 months ago

The verbose mode does not add anything new:

psaiz@mac-psaiz opendata.cern.ch % cernopendata-client get-file-locations --recid 14
==> ERROR: Error occured while fetching file info. Please try again.
psaiz@mac-psaiz opendata.cern.ch % cernopendata-client get-file-locations --recid 14 --verbose
==> ERROR: Error occured while fetching file info. Please try again.
tiborsimko commented 11 months ago

I think the --verbose option works as expected:

$ cernopendata-client get-file-locations --help
...
  --verbose                 Output also the file size (in the second column)
                            and the file checksum (in the third column).

$ cernopendata-client get-file-locations --recid 14 --server https://opendata-qa.cern.ch | head -3
https://opendata.cern.ch/eos/opendata/cms/Run2010B/Mu/AOD/Apr21ReReco-v1/0000/00459D48-EB70-E011-AF09-90E6BA19A252.root
https://opendata.cern.ch/eos/opendata/cms/Run2010B/Mu/AOD/Apr21ReReco-v1/0000/0045B1D9-8775-E011-AC5D-0019BB3F73A4.root
https://opendata.cern.ch/eos/opendata/cms/Run2010B/Mu/AOD/Apr21ReReco-v1/0000/0048DD36-6570-E011-A43C-485B39800BA2.root

$ cernopendata-client get-file-locations --recid 14 --server https://opendata-qa.cern.ch --verbose | head -3
https://opendata.cern.ch/eos/opendata/cms/Run2010B/Mu/AOD/Apr21ReReco-v1/0000/00459D48-EB70-E011-AF09-90E6BA19A252.root 1522131812    adler32:e9535985
https://opendata.cern.ch/eos/opendata/cms/Run2010B/Mu/AOD/Apr21ReReco-v1/0000/0045B1D9-8775-E011-AC5D-0019BB3F73A4.root 2517514073    adler32:109ee1ac
https://opendata.cern.ch/eos/opendata/cms/Run2010B/Mu/AOD/Apr21ReReco-v1/0000/0048DD36-6570-E011-A43C-485B39800BA2.root 647138717     adler32:cfae9719

The above ERROR is due to temporary troubles with fetching file information.