Open Castronova opened 7 years ago
When the restclient unzips a resource, a duplicate folder is created. This doesn't happen when resources are downloaded directly from HydroShare and unzipped manually.
>>> import hs_restclient >>> hs = hs_restclient.hydroshare() >>> hs.getResource('da7973a47a0849798be5ae5a1110c1c0', unzip=True, destination='.')
creates the following folder structure
$ tree da7973a47a0849798be5ae5a1110c1c0/ da7973a47a0849798be5ae5a1110c1c0/ └── da7973a47a0849798be5ae5a1110c1c0 ├── bagit.txt ├── data │ ├── contents │ │ └── vegetation.zip │ ├── resourcemap.xml │ └── resourcemetadata.xml ├── manifest-md5.txt ├── readme.txt └── tagmanifest-md5.txt
instead is should simply be
$ tree da7973a47a0849798be5ae5a1110c1c0/ da7973a47a0849798be5ae5a1110c1c0/ ├── bagit.txt ├── data │ ├── contents │ │ └── vegetation.zip │ ├── resourcemap.xml │ └── resourcemetadata.xml ├── manifest-md5.txt ├── readme.txt └── tagmanifest-md5.txt
Hey @Castronova would you mind un-assigning me from the hs_restclient tickets?
When the restclient unzips a resource, a duplicate folder is created. This doesn't happen when resources are downloaded directly from HydroShare and unzipped manually.
creates the following folder structure
instead is should simply be