There was an error while loading. Please reload this page.
2 parents aa9963e + 8e761ee commit d2add4eCopy full SHA for d2add4e
tools/patch.py
@@ -132,6 +132,10 @@ def main():
132
else:
133
shutil.copy(src_patch_path, dst_patch_path)
134
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}.')
139
140
if __name__ == '__main__':
141
try:
0 commit comments