mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix delete files
This commit is contained in:
@@ -58,6 +58,10 @@ def delete_files(js_data, images, _html_info, index):
|
||||
filenames.append(os.path.basename(fullfn))
|
||||
try:
|
||||
os.remove(fullfn)
|
||||
base, _ext = os.path.splitext(fullfn)
|
||||
desc = f'{base}.txt'
|
||||
if os.path.exists(desc):
|
||||
os.remove(desc)
|
||||
fullfns.append(fullfn)
|
||||
shared.log.info(f"Deleting image: {fullfn}")
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user