Skip to content

Commit d2add4e

Browse files
committed
Merge branch 'tools/patch_support_directory' into 'master'
tools: Added directory support in patch.py See merge request application/esp-at!1950
2 parents aa9963e + 8e761ee commit d2add4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/patch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ def main():
132132
else:
133133
shutil.copy(src_patch_path, dst_patch_path)
134134
ESP_LOGI(f'{src_patch_path} has been applied.')
135+
# directory
136+
elif os.path.isdir(src_patch_path):
137+
shutil.copytree(src_patch_path, dst_patch_path, dirs_exist_ok=True)
138+
ESP_LOGI(f'Directory {src_patch_path} has been synchronized to {dst_patch_path}.')
135139

136140
if __name__ == '__main__':
137141
try:

0 commit comments

Comments
 (0)