mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 13:09:57 +08:00
update_folder_sync_state() mutated the loaded metadata dict and returned without writing it back, so last_sync/synced_files never reached metadata.json while the API layer logged success. Future scans re-treated already-synced files as new. Write back through a same-directory temp file + os.replace so readers never observe a truncated metadata.json.