Don't remove none directory for classes

This commit is contained in:
Nicolas Mowen 2025-12-08 09:02:17 -07:00
parent 17ac273b90
commit 406382124a

View File

@ -710,7 +710,7 @@ def delete_classification_dataset_images(
if os.path.isfile(file_path):
os.unlink(file_path)
if os.path.exists(folder) and not os.listdir(folder):
if os.path.exists(folder) and not os.listdir(folder) and category.lower() != "none":
os.rmdir(folder)
return JSONResponse(