ComfyUI-Manager/comfyui_manager/legacy
Dr.Lt.Data df00805bee
Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
CI / Validate OpenAPI Specification (push) Has been cancelled
CI / Code Quality Checks (push) Has been cancelled
E2E Tests on Multiple Platforms / E2E (${{ matrix.os }}, py${{ matrix.python-version }}) (macos-latest, 3.10) (push) Has been cancelled
E2E Tests on Multiple Platforms / E2E (${{ matrix.os }}, py${{ matrix.python-version }}) (ubuntu-latest, 3.10) (push) Has been cancelled
E2E Tests on Multiple Platforms / E2E (${{ matrix.os }}, py${{ matrix.python-version }}) (windows-latest, 3.10) (push) Has been cancelled
fix(core): harden try_rmtree with retry and rename for Windows
On Windows, shutil.rmtree fails when files are locked by antivirus
or git handles. The current fallback (reserve_script for lazy delete)
is useless in cm-cli where there is no restart cycle, causing
reinstall to fail with "Already exists".

3-tier deletion strategy:
1. Retry rmtree 3x with 1s delay (handles transient locks)
2. Rename to .trash_* then delete (moves out of scan path)
3. Lazy delete via reserve_script (ComfyUI GUI fallback)

After rename, lazy-delete targets the .trash_* path (not original),
so the original path is clear for subsequent clone/install.
2026-03-22 10:18:15 +09:00
..
__init__.py restructuring 2025-04-13 09:26:02 +09:00
manager_core.py fix(core): harden try_rmtree with retry and rename for Windows 2026-03-22 10:18:15 +09:00
manager_server.py security(api): add path traversal and CRLF injection protection 2026-01-08 18:35:03 +09:00
share_3rdparty.py bump version 2025-08-24 15:58:23 +09:00