mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(mm): issue with deleting single file models
This commit is contained in:
@@ -372,7 +372,7 @@ class ModelInstallService(ModelInstallServiceBase):
|
||||
if model_path.is_file() or model_path.is_symlink():
|
||||
model_path.unlink()
|
||||
assert model_path.parent != self.app_config.models_path
|
||||
os.rmdir(model_path.parent)
|
||||
rmtree(model_path.parent)
|
||||
elif model_path.is_dir():
|
||||
rmtree(model_path)
|
||||
self.unregister(key)
|
||||
|
||||
Reference in New Issue
Block a user