A simple Rust CLI tool that automatically sorts files in a directory into three categorized subfolders.
Given a target directory, it creates three subfolders and moves files into them based on extension:
| Folder | Extensions |
|---|---|
media |
jpg, jpeg, png, gif, bmp, webp, mp4, mkv, avi, mov |
files |
pdf, doc, docx, txt, rtf, xls, xlsx, ppt, pptx, csv |
misc |
everything else |
Only top-level files are processed, subdirectories are left untouched.
# Run directly with cargo
cargo run -- <path_to_directory>
# Example
cargo run -- C:\Users\Name\DesktopOr build a release binary first:
cargo build --release
./target/release/rust-organizer <path_to_directory>