mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 23:42:07 +01:00
Update backend/tasks/manual/cleanup_orphaned_resources.py
Co-authored-by: Georges-Antoine Assi <3247106+gantoine@users.noreply.github.com>
This commit is contained in:
@@ -21,8 +21,8 @@ class CleanupOrphanedResourcesTask:
|
||||
|
||||
removed_count = 0
|
||||
|
||||
roms_path = os.path.join(RESOURCES_BASE_PATH, "roms")
|
||||
if not os.path.exists(RESOURCES_BASE_PATH) or not os.path.exists(roms_path):
|
||||
roms_resources_path = os.path.join(RESOURCES_BASE_PATH, "roms")
|
||||
if not os.path.exists(roms_resources_path):
|
||||
log.info("Resources path does not exist, skipping cleanup")
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user