Skip to content

Commit

Permalink
ci: use shutil.copytree to copy folder
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <578567190@qq.com>
  • Loading branch information
fanghuaqi committed Dec 29, 2023
1 parent 1250276 commit d354ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/prepare_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def setup_gd_openocd(toolsdir, gd_openocd_uri, system_value, nsideloc, reuse):
# Rename the old openocd folder to gd_openocd
if os.path.isdir(destination_folder) == False:
print("Copy %s -> %s" % (org_folder, destination_folder))
shutil.copy(org_folder, destination_folder)
shutil.copytree(org_folder, destination_folder)
else:
print("%s already exist!" % (destination_folder))

Expand Down

0 comments on commit d354ec9

Please # to comment.