fix bug
Build-Deploy-Actions Details

This commit is contained in:
jlhu4 2023-09-14 17:44:05 +08:00
parent 48515eb52b
commit 8f4aed76ec
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ def del_file(filepath):
:param filepath: 路径
:return:
"""
if not os.path.exists(filepath):
print(f"路径 {filepath} 不存在,无需删除。")
return
del_list = os.listdir(filepath)
for f in del_list:
file_path = os.path.join(filepath, f)