Skip to content

fix(scan): exclude quarantine output from rescans#20

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-management-bbaa
Draft

fix(scan): exclude quarantine output from rescans#20
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-management-bbaa

Conversation

@cursor

@cursor cursor Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

run_scan excluded the app data directory but not ~/Desktop/Quarantine. Scanning a parent folder that includes Desktop could re-walk quarantined copies, group them with live originals, and on apply move the wrong keeper into Quarantine.

Changed files

  • src-tauri/src/commands.rs — add normalized quarantine_out_dir to scan exclude list
  • src-tauri/tests/smoke.rs — regression test for quarantine path exclusion

Testing performed

  • cargo test --workspace (blocked in cloud agent: Cargo 1.83 lacks edition2024 for blake3)
  • Added quarantine_output_path_is_excluded_from_rescan smoke test
  • Manual run on macOS / Apple Silicon (Dry mode first)

Safety notes

Exact-hash-only dedup, Dry-default, and quarantine-never-delete semantics preserved. This only prevents quarantined copies from being scanned as duplicate candidates.

Open in Web View Automation 

Quarantined copies under ~/Desktop/Quarantine were still walked when
scanning a parent folder, letting them group with live originals and
potentially move the wrong keeper into Quarantine on apply.

Co-authored-by: ringlet_fires5b <ringlet_fires5b@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant