已存在直接切屁
This commit is contained in:
1 parent
2ce2000147
commit
db129b7f2c
2 files changed
+8
-2
No files matched your search
@@ -215,6 +215,7 @@ def downloadJsonAndJpgFileAndMoveToCorrectDir(versionId, currentDir):
|
||||
|
||||
# 判断目录是否存在,存在就删除
|
||||
if os.path.exists(dirNewName):
|
||||
return dirNewName, machineInfo,True
|
||||
shutil.rmtree(dirNewName)
|
||||
# 创建目录
|
||||
os.makedirs(dirNewName)
|
||||
|
||||
Reference in new issue
Block a user