fix delete files

This commit is contained in:
Vladimir Mandic
2023-07-21 14:49:28 -04:00
parent 4c2664dbc3
commit b8f2b90210
+4
View File
@@ -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: