organizer
is a Rust library and CLI tool designed to help you organize files within a directory based on specific criteria, such as file extension or modification date. It efficiently moves files into dynamically created subdirectories.
Features
- Organize by Extension: Group files together based on their type (e.g., all
.txtfiles in atxtfolder). - Organize by Date: Group files based on their last modification time (Year, Month, or Day).
- CLI Tool: Ready-to-use command-line interface.
- Robust Error Handling: Non-fatal errors are collected and reported without stopping the entire process.
Installation
As a Library
Add this to your Cargo.toml:
[]
= "0.1.0" # Check for the latest version on crates.io
Or run:
As a CLI Tool
Install directly from crates.io:
Usage
Command Line Interface (CLI)
# Organize files by extension (Default)
# Organize files by year of modification
# Organize files by month of modification
# Organize files by day of modification
Library Usage
use ;
License
This project is licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)