liquidcarbon commited on
Commit
dc9ad4a
1 Parent(s): 5a5d9e1
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -47,7 +47,7 @@ def files_in_folder(path: str):
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:
53
  parent_url = "/"
 
47
 
48
  if folder != ROOT: # create ".." unless in ROOT
49
  if "/" in path[:-1]:
50
+ parent_path = path.rsplit("/", 2)[0]
51
  parent_url = f"/files/{parent_path}/"
52
  else:
53
  parent_url = "/"