ComfyUI/tests-unit/folder_paths_test
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
..
__init__.py Add content-type filter method to folder_paths (#4054) 2024-09-11 02:00:07 -04:00
cache_invalidation_test.py Fix get_filename_list crash when a cached model folder is deleted 2026-06-16 12:35:23 +09:00
filter_by_content_types_test.py Update filter_files_content_types to support filtering 3d models (#7572) 2025-04-12 18:30:39 -04:00
misc_test.py LoRA Trainer: LoRA training node in weight adapter scheme (#8446) 2025-06-13 19:25:59 -04:00
system_user_test.py feat(security): add System User protection with __ prefix (#10966) 2025-11-28 21:28:42 -05:00