Skip to content

GolgothaAksanti/file-orginizer-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📁 File Organizer

A simple and fast file organizer written in Rust. Automatically sorts files in a folder by file type (extension) or last modified date.

🚀 Features

  • ✅ Sort files by type (--mode type)
  • 📆 Sort files by last modified date (--mode date)
  • 📂 Organizes files into subfolders
  • 🧼 Skips directories and hidden files
  • ⚡ Built with performance in mind

📦 Installation

1. Clone the Repository

git clone https://github.com/GolgothaAksanti/file-organizer-rust.git
cd file-organizer-rust

2. Build the project

Make sure you have Rust installed: https://rustup.us

cargo build --release

The binary will be located at target/release/rust-file-orginizer

🛠 Usage

cargo run -- --folder <folder_path> --mode <type|date>

Examples

Sort by file type (extension):

cargo run -- --folder ./downloads --mode type
Result:
downloads/
├── jpg/
│   └── image.jpg
├── pdf/
│   └── document.pdf

Sort by file date:

cargo run -- --folder ./downloads --mode date
Result:
downloads/
├── 2025-06-07/
│   └── example.txt

📄 Arguments

Argument Short Required Description
--folder -f Path to the folder to organize
--mode -m Sorting mode:type or date

🧪 Testing

Use a test folder with mixed files and run:

cargo run -- --folder ./test --mode type
# or
cargo run -- --folder ./test --mode date

✨ Future Improvements

  • Recursive folder scanning

  • Custom destination folder

  • Undo option

  • Config file support (TOML/YAML)

  • GUI version with Tauri or egui

👨‍💻 Author

Made with 🦀 by Golgotha Aksanti

About

A fast and lightweight CLI tool written in Rust to automatically organize files in a folder by file type or last modified date. Clean up cluttered directories in seconds.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages