mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 03:20:02 +08:00
Builds on #899, which stopped a linked folder's subdirectories from collapsing into raw/'s top level. Preserving structure removes most name clashes but not the one #866 actually hit: a folder too large to sync at once is added one subfolder at a time, and each batch roots at its own folder, so `cli/README.md` and `events/README.md` both want raw/README.md. The second was skipped as a "filename collision" — a document the user asked to index, dropped with nothing in the response to say so. A clash between different bytes now stages under a free sibling name. Identical bytes still recover the staged copy, and content-level dedup via file_hashes is untouched, so a repeated sync neither duplicates nor churns. The staging log also reports the path a file actually landed at rather than its source basename, which is no longer the same thing.