mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
narrowing bulk_download stop service scope
This commit is contained in:
committed by
psychedelicious
parent
39c01a833d
commit
b5ca1643a6
@ -143,8 +143,8 @@ class BulkDownloadService(BulkDownloadBase):
|
||||
|
||||
def stop(self, *args, **kwargs):
|
||||
"""Stop the bulk download service and delete the files in the bulk download folder."""
|
||||
# Get all the files in the bulk downloads folder
|
||||
files = self.__bulk_downloads_folder.glob("*")
|
||||
# Get all the files in the bulk downloads folder, only .zip files
|
||||
files = self.__bulk_downloads_folder.glob("*.zip")
|
||||
|
||||
# Delete all the files
|
||||
for file in files:
|
||||
|
Reference in New Issue
Block a user