We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 143d479 + 5462584 commit 58e8407Copy full SHA for 58e8407
storage.py
@@ -85,7 +85,7 @@ def judge_delete_folder(self, filepath):
85
currpath = os.path.dirname(filepath)
86
if os.listdir(currpath):
87
return
88
- while str(currpath) != (str(self.DATA_ROOT) + '\\upload'):
+ while str(currpath) != (str(os.path.join(self.DATA_ROOT, 'upload'))):
89
if not os.listdir(currpath):
90
os.rmdir(os.path.abspath(currpath))
91
currpath = os.path.dirname(currpath)
0 commit comments