Skip to content

Commit b8cb081

Browse files
authored
Update pack.py
1 parent 5bd9a10 commit b8cb081

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/scripts/pack.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222

2323
def copy_item(src_path, dest_path):
2424
if path.isdir(src_path):
25-
if not path.exists(dest_path):
26-
shutil.copytree(src_path, dest_path)
25+
shutil.copytree(src_path, dest_path, dirs_exist_ok=True)
2726
else:
2827
shutil.copy(src_path, dest_path)
2928

0 commit comments

Comments
 (0)