pup-py commited on
Commit
5a5d9e1
1 Parent(s): debc93e

.. ... ......

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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: