ComfyUI/app/assets
Luke Mino-Altherr 9bdce59d62 fix: replace os.path.commonpath with Path.is_relative_to for cross-drive safety
commonpath raises ValueError on Windows when comparing paths on different
drives (e.g. C:\models vs D:\extra_models). Replace all usages in the
asset scanner with Path.is_relative_to() which handles cross-drive paths,
case-insensitivity, and prefix traps natively without try/except.

Amp-Thread-ID: https://ampcode.com/threads/T-019c9224-d83c-7797-8c02-e1e1ae2ee452
Co-authored-by: Amp <amp@ampcode.com>
2026-02-24 18:57:55 -08:00
..
api feat(assets): async two-phase scanner and background seeder 2026-02-24 18:57:55 -08:00
database refactor(assets): database layer — split queries into modules and merge migrations 2026-02-24 18:57:55 -08:00
services fix: replace os.path.commonpath with Path.is_relative_to for cross-drive safety 2026-02-24 18:57:55 -08:00
helpers.py refactor(assets): extract services layer from manager and helpers 2026-02-24 18:57:55 -08:00
scanner.py fix: replace os.path.commonpath with Path.is_relative_to for cross-drive safety 2026-02-24 18:57:55 -08:00
seeder.py feat(assets): async two-phase scanner and background seeder 2026-02-24 18:57:55 -08:00