mirror of
https://github.com/esphome/esphome.git
synced 2025-09-16 18:22:22 +01:00
cleanup
This commit is contained in:
@@ -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):
|
||||
|
Reference in New Issue
Block a user