Spaces:
Sleeping
Sleeping
.. ... ......
Browse files
main.py
CHANGED
@@ -46,7 +46,7 @@ def files_in_folder(path: str):
|
|
46 |
)
|
47 |
|
48 |
if folder != ROOT: # create ".." unless in ROOT
|
49 |
-
if "/" in path:
|
50 |
parent_path = path.rsplit("/", 1)[0]
|
51 |
parent_url = f"/files/{parent_path}/"
|
52 |
else:
|
|
|
46 |
)
|
47 |
|
48 |
if folder != ROOT: # create ".." unless in ROOT
|
49 |
+
if "/" in path[:-1]:
|
50 |
parent_path = path.rsplit("/", 1)[0]
|
51 |
parent_url = f"/files/{parent_path}/"
|
52 |
else:
|