Skip to content

Commit 5ff636c

Browse files
committed
Remove extra / at end of path
1 parent 7b86df7 commit 5ff636c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

singlestoredb/management/workspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def _listdir(self, stage_path: PathLike, *, recursive: bool = False) -> List[str
460460
461461
"""
462462
res = self._manager._get(
463-
f'stage/{self._deployment_id}/fs/{stage_path}',
463+
re.sub(r'/+$', r'/', f'stage/{self._deployment_id}/fs/{stage_path}'),
464464
).json()
465465
if recursive:
466466
out = []

0 commit comments

Comments
 (0)