Fix an issue where adding a sub-folder inside a folder is not working as expected. #6544

This commit is contained in:
San Lin Naing
2023-07-10 22:02:21 +09:00
committed by GitHub
parent a08714cd65
commit 16a0950f63

View File

@@ -947,6 +947,8 @@ class Filemanager():
new_name = name new_name = name
count = 0 count = 0
while True: while True:
if not (path.endswith("/") or name.startswith("/")):
path = path + "/"
file_path = "{}{}/".format(path, new_name) file_path = "{}{}/".format(path, new_name)
create_path = file_path create_path = file_path
if in_dir != "": if in_dir != "":