Skip to content

Commit

Permalink
Fix an issue where adding a sub-folder inside a folder is not working…
Browse files Browse the repository at this point in the history
… as expected. #6544
  • Loading branch information
sanlinnaing authored Jul 10, 2023
1 parent a08714c commit 16a0950
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/pgadmin/misc/file_manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,8 @@ def get_new_name(in_dir, path, name):
new_name = name
count = 0
while True:
if not (path.endswith("/") or name.startswith("/")):
path = path + "/"
file_path = "{}{}/".format(path, new_name)
create_path = file_path
if in_dir != "":
Expand Down

0 comments on commit 16a0950

Please sign in to comment.