Skip to content

Commit be9968d

Browse files
authored
fix(fsspec): pass detail=False to ls to continue returning a list of strings (#229)
1 parent b0104cf commit be9968d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pins/boards.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ def pin_versions(self, name: str, as_df: bool = True) -> Sequence[VersionRaw]:
9898
if not self.pin_exists(name):
9999
raise PinsError("Cannot check version, since pin %s does not exist" % name)
100100

101-
versions_raw = self.fs.ls(self.construct_path([self.path_to_pin(name)]))
101+
versions_raw = self.fs.ls(
102+
self.construct_path([self.path_to_pin(name)]), detail=False
103+
)
102104

103105
# get a list of Version(Raw) objects
104106
all_versions = []
@@ -179,7 +181,7 @@ def pin_list(self):
179181
each pin in a convenient form.
180182
"""
181183

182-
full_paths = self.fs.ls(self.board)
184+
full_paths = self.fs.ls(self.board, detail=False)
183185
pin_names = map(self.keep_final_path_component, full_paths)
184186

185187
return [name for name in pin_names if name not in self.reserved_pin_names]

0 commit comments

Comments
 (0)