portal_client icon indicating copy to clipboard operation
portal_client copied to clipboard

Restitute path hierarchy from manifest URLs

Open alicedb2 opened this issue 5 years ago • 1 comments

When downloading from a large manifest, all files are dumped in the same directory with no control beyond --destination. When multiple studies and body-sites are included, if would help if the client could save each file in subdirectories that recapitulate part of the URL.

Closest thing I can think of is how wget -r -x -nH --cut-dirs operates, so that the client would end up putting, for example, http://downloads.hmpdacc.org/data/HM16STR/HMDEMO/SRP002429/stool/not_affected/SRS066677.fsa locally in destination-dir/HM16STR/HMDEMO/SRP002429/stool/not_affected/SRS066677.fsa.

alicedb2 avatar Oct 18 '19 19:10 alicedb2