Skip to content

Commit 58e8407

Browse files
authored
Merge pull request #20 from ZHYCarge/master
fix: 修改文件存放路径的拼接方式
2 parents 143d479 + 5462584 commit 58e8407

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)