Commit Graph

1 Commits

Author SHA1 Message Date
JSap0914
fe89d39c1b Fix get_filename_list crash when a cached model folder is deleted
cached_filename_list_ probes os.path.getmtime() for every directory
recorded while the filename cache was built, including subfolders. If
one of those folders is removed at runtime (e.g. the user deletes a
model folder), getmtime() raises FileNotFoundError, which propagates
out of get_filename_list() and breaks model listing instead of simply
rebuilding the cache.

Treat an inaccessible tracked folder as a stale-cache signal and return
None so the list is rebuilt.
2026-06-16 12:35:23 +09:00