Skip to content

Commit 5462584

Browse files
authored
fix: 修改文件存放路径的拼接方式
fix: 修改文件存放路径的拼接方式
1 parent 58c1d3d commit 5462584

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def judge_delete_folder(self, filepath):
8585
currpath = os.path.dirname(filepath)
8686
if os.listdir(currpath):
8787
return
88-
while str(currpath) != (str(self.DATA_ROOT) + '\\upload'):
88+
while str(currpath) != (str(os.path.join(self.DATA_ROOT, 'upload'))):
8989
if not os.listdir(currpath):
9090
os.rmdir(os.path.abspath(currpath))
9191
currpath = os.path.dirname(currpath)

0 commit comments

Comments
 (0)