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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -947,6 +947,8 @@ class Filemanager():
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 != "":