bcdev / nc2zarr

A Python tool that converts NetCDF files to Zarr format
MIT License
9 stars 3 forks source link

Sorting by name does not work for paths ending with "/" #29

Closed forman closed 3 years ago

forman commented 3 years ago

...because we use os.path.basename() as sort key, but os.path.basename("this/is/my.zarr/") is "", so result will unsorted :(