已存在直接切屁

This commit is contained in:
dongchangxi committed 2025-12-19 16:03:54 +08:00
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)