AGENTS.md@backend/packages/harness/deerflow/uploads · git:20261009.2502b38 · 2026-10-09 · sha256 f8f126d185e6614f
AGENTS.md@backend/packages/harness/deerflow/uploads git:20261009.2502b38A
Immutable. This exact content never changes and is served at /api/v1/blob/f8f126d185e6614f.
# Uploads `manager.py::list_files_in_dir` returns a best-effort snapshot under concurrent cleanup. Entry stat races (`ENOENT`, `ENOTDIR`, `ELOOP`) are skipped with debug logging. Directory removal or replacement by a non-directory during scanning returns entries already collected and logs the directory path and retained entry count at debug level. Permission and other operational errors propagate. Keep both entry and directory race coverage in `backend/tests/test_uploads_manager.py`.