1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-16 10:12:21 +01:00
This commit is contained in:
J. Nick Koston
2025-09-15 17:25:56 -05:00
parent 62b713a04c
commit 601c792913

View File

@@ -1040,9 +1040,7 @@ class ArchiveRequestHandler(BaseHandler):
storage_json = StorageJSON.load(storage_path)
if storage_json is not None and storage_json.build_path:
# Delete build folder (if exists)
build_folder = storage_json.build_path
if os.path.exists(build_folder):
shutil.rmtree(build_folder, ignore_errors=True)
shutil.rmtree(storage_json.build_path, ignore_errors=True)
class UnArchiveRequestHandler(BaseHandler):