The Robust File Organizer — A blazing fast, content-aware, and atomic file organization tool written in Rust.
Most file organizers just move files by extension. rarch is designed for power users who care about data integrity, storage efficiency, and zero-latency organization.
rarch Interactive TUI Dashboard
rarch CLI Running in Dry-Run Mode
- Blazing Fast: Powered by Rust and
rayonfor parallel processing. Scan and organize 100k+ files in seconds. - Atomic Undo: Every operation is journaled. If you mess up your rules,
rarch undorestores everything exactly where it was. - Content-Aware: Don't be fooled by extensions. rarch uses deep magic-number inspection to identify file types (e.g., identifies a
.txtas a.png). - Hard-link Deduplication: Automatically detects identical files using SHA-256 and converts duplicates into hard links, saving storage instantly.
- Regex & Date Filters: Organize files by complex patterns or age (e.g., "move files older than 30 days").
- Dynamic Organization: Use placeholders like
${year},${month}, and${ext}in your target paths. - Professional Analytics: Dry-run mode provides a detailed table summary and "Potential Space Saved" reports.
- Shell Completions: Native support for Bash, Zsh, Fish, and PowerShell.
- Real-time Watch Mode: Run
rarch watchto handle files the moment they arrive. - Interactive TUI: A beautiful dashboard for those who prefer a keyboard-driven visual experience.
cargo install rarch --features uiCreate rarch.toml:
[[rules]]
name = "Photos"
mime = "image/*"
target = "Pictures/${year}"
conflict = "rename"
[[rules]]
name = "PDFs"
type = "document"
extensions = ["pdf"]
target = "Archives/Documents"
conflict = "skip"# Preview changes first
rarch run --dry-run
# Execute organization & deduplication
rarch run --path ~/Downloadsrarch undorarch watch --path ~/Downloads- Scanner: Deep or shallow directory traversal.
- Engine:
- Parallel hashing (SHA-256).
- Content-type inference.
- Link-based deduplication logic.
- Journal: JSON-based transaction log for 100% reliable undo.
- UI: Zero-dependency TUI powered by
ratatui.
MIT OR Apache-2.0