Skip to content

Commit 2774654

Browse files
committed
format path in backend when listing
1 parent 9784010 commit 2774654

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jupyter_drives/manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ async def get_contents(self, drive_name, path):
165165
"""
166166
if path == '/':
167167
path = ''
168+
else:
169+
path = path.strip('/')
170+
168171
try :
169172
data = []
170173
isDir = False

0 commit comments

Comments
 (0)