1
This commit is contained in:
@@ -48,7 +48,11 @@ def zip_folder(zip_name:str, folder_name:str, save_path:str):
|
||||
|
||||
|
||||
def zip_verification(zip_name:str, folder_name:str, save_path:str):
|
||||
tmp_dir = os.path.join(save_path, "_tmp")
|
||||
i = 0
|
||||
|
||||
while os.path.exists(os.path.join(save_path, f"_tmp_{i}")):
|
||||
i += 1
|
||||
tmp_dir = os.path.join(save_path, f"_tmp_{i}")
|
||||
|
||||
# 清理旧的临时目录
|
||||
if os.path.exists(tmp_dir):
|
||||
|
||||
Reference in New Issue
Block a user