Skip to content

Commit babbfd5

Browse files
author
Martin Durant
committed
fix ls
1 parent d48468f commit babbfd5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zarr/storage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,8 @@ def dir_path(self, path=None):
10101010
def listdir(self, path=None):
10111011
dir_path = self.dir_path(path)
10121012
try:
1013-
return sorted(p.rsplit('/', 1)[-1] for p in self.fs.ls(dir_path))
1013+
return sorted(p.rsplit('/', 1)[-1]
1014+
for p in self.fs.ls(dir_path, detail=False))
10141015
except IOError:
10151016
return []
10161017

0 commit comments

Comments
 (0)