diff --git a/examples/chef/chef.py b/examples/chef/chef.py index 7d1a843fa18033..37108195cf8cc3 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -269,7 +269,7 @@ def bundle_esp32(device_name: str) -> None: if os.sep in item: new_dir = item[:item.rindex(os.sep)] new_dir = os.path.join(_CD_STAGING_DIR, new_dir) - os.makedirs(new_dir, exists_ok=True) + os.makedirs(new_dir, exist_ok=True) src_item = os.path.join(esp_root, item) dest_item = os.path.join(_CD_STAGING_DIR, item) shutil.copy(src_item, dest_item)