Merge pull request #20 from ZHYCarge/master

fix: 修改文件存放路径的拼接方式
This commit is contained in:
vastsa authored and GitHub committed 2022-12-27 07:15:51 +08:00
commit 58e8407e7d
1 file changed
+1 -1
+1 -1
View File
@@ -85,7 +85,7 @@ class FileSystemStorage:
currpath = os.path.dirname(filepath)
if os.listdir(currpath):
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):
os.rmdir(os.path.abspath(currpath))
currpath = os.path.dirname(currpath)