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

searcher: separate out get_list_directory() and friends #97

Closed tiborsimko closed 3 years ago

tiborsimko commented 3 years ago

This "internal" issue is about refactoring some functions between cernopendata-client components.

The searcher component is basically contacting CERN Open Data portal and its API. So it is meant as a web client for /api/records and friends.

Currently, the same component contains also get_list_directory() function, which is not exactly using the above search APIs, but it is rather working directly with the EOSPUBLIC /eos/opendata filesystem and directory structure.

This issue proposes to separate EOSPUBLIC directory handling functions (that are not using opendata.cern.ch's portal API in any way) into a new component.

We can invent some nice name, e.g. eospublic (but this is not a verb) or walker.py or filer.py (but this may be weird) or xrootdexplorer (for example) or something?