fix(desktop): stop USB re-imports inventing -1/-2 copies (BIT-168) #168

Merged
spark merged 1 commits from task/BIT-168-usb-no-dup-copies into main 2026-11-03 21:30:44 +00:00
Owner

Summary

  • USB download keeps the camera file name (no PSR1-1.JPG in ingest when a leftover copy exists).
  • Fetched names persist in .usb/.fetched so reconnect/auto-pull does not pull the same shot again.
  • ftp_sent: if the work folder already has that name, delete the ingest duplicate instead of filing -1/-2.

Test plan

  • cargo test ftp unit tests (second sent of same name)
  • USB auto-pull twice on the same card → one file in the event work folder
## Summary - USB download keeps the camera file name (no `PSR1-1.JPG` in ingest when a leftover copy exists). - Fetched names persist in `.usb/.fetched` so reconnect/auto-pull does not pull the same shot again. - `ftp_sent`: if the work folder already has that name, delete the ingest duplicate instead of filing `-1`/`-2`. ## Test plan - [x] `cargo test` ftp unit tests (second `sent` of same name) - [ ] USB auto-pull twice on the same card → one file in the event work folder
spark added 1 commit 2026-11-03 20:58:54 +00:00
fix(desktop): stop USB re-imports inventing -1/-2 copies (BIT-168)
ci / rust (pull_request) Successful in 4m45s
ci / typescript (pull_request) Successful in 8m20s
41598aa1ae
Re-pulling the same card name (or a server duplicate) was filing PSR1-1.JPG beside the first copy. Keep the camera name in ingest, remember fetched names on disk, and if the work folder already has that file just drop the ingest duplicate.
spark merged commit b1dde5657a into main 2026-11-03 21:30:44 +00:00
Sign in to join this conversation.