fix bug
Build-Deploy-Actions
Details
Build-Deploy-Actions
Details
This commit is contained in:
parent
48515eb52b
commit
8f4aed76ec
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue