test/custom-admin-ui #3

Merged
orion merged 673 commits from test/custom-admin-ui into master 2026-06-05 17:20:58 +08:00
Showing only changes of commit 32c2fef57c - Show all commits
+1 -1
View File
@@ -85,7 +85,7 @@ class FileSystemStorage:
currpath = os.path.dirname(filepath) currpath = os.path.dirname(filepath)
if os.listdir(currpath): if os.listdir(currpath):
return return
while str(currpath) != (str(self.DATA_ROOT) + '\\upload'): while str(currpath) != (str(os.path.join(self.DATA_ROOT, 'upload'))):
if not os.listdir(currpath): if not os.listdir(currpath):
os.rmdir(os.path.abspath(currpath)) os.rmdir(os.path.abspath(currpath))
currpath = os.path.dirname(currpath) currpath = os.path.dirname(currpath)