HDFGroup / h5pyd

h5py distributed - Python client library for HDF Rest API
Other
110 stars 39 forks source link

Allow hsls to list folders without trailing / #57

Closed ghost closed 5 years ago

ghost commented 5 years ago

Convenience improvement. In case the user forgets (or is lazy) to end the folder path name with '/', the hsls command with first treat the path as domain and if failing that will try it as a folder.

ghost commented 5 years ago

Example:

$ hsls /shared
/shared: No such domain
Trying as a folder /shared/
admin                           folder   2018-06-26 11:24:59 /shared/
admin                           folder   2018-06-26 11:51:04 /shared/NREL/
admin                           folder   2018-07-08 17:32:58 /shared/NASA/
admin                           domain   2018-07-09 18:16:36 /shared/tall.h5
admin                           folder   2018-07-16 02:00:36 /shared/sample/
5 items