{"id":49365655,"url":"https://github.com/basantsd/smart-file-organizer-cli","last_synced_at":"2026-04-27T19:03:51.571Z","repository":{"id":353903553,"uuid":"1221282976","full_name":"basantsd/smart-file-organizer-cli","owner":"basantsd","description":"A fast, flexible, and safe command-line tool built in Rust to automatically organize messy folders into structured directories using customizable rules.","archived":false,"fork":false,"pushed_at":"2026-04-26T06:28:21.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-26T07:22:08.389Z","etag":null,"topics":["anyhow","cargo","clap-rs","directory","indicatif","rust","serde","toml"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/basantsd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-26T01:49:35.000Z","updated_at":"2026-04-26T06:30:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/basantsd/smart-file-organizer-cli","commit_stats":null,"previous_names":["basantsd/smart-file-organizer-cli"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/basantsd/smart-file-organizer-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basantsd%2Fsmart-file-organizer-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basantsd%2Fsmart-file-organizer-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basantsd%2Fsmart-file-organizer-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basantsd%2Fsmart-file-organizer-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basantsd","download_url":"https://codeload.github.com/basantsd/smart-file-organizer-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basantsd%2Fsmart-file-organizer-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32350247,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T17:12:42.749Z","status":"ssl_error","status_checked_at":"2026-04-27T17:12:41.658Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anyhow","cargo","clap-rs","directory","indicatif","rust","serde","toml"],"created_at":"2026-04-27T19:03:40.251Z","updated_at":"2026-04-27T19:03:51.553Z","avatar_url":"https://github.com/basantsd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart File Organizer CLI (Rust)\n\n![Rust](https://img.shields.io/badge/Rust-000000?style=for-the-badge\u0026logo=rust\u0026logoColor=white)\n\n## 📸 Demo\n\n### Before: Unorganized Files\n![Unorganized Files](./demo/1-unorganized-files.png)\n\n### Checking Dry Run\n![Check Dry Run](./demo/2-check-dry-run.png)\n\n### Moving Files\n![Move Files](./demo/3-move-files.png)\n\n### After: Organized Files\n![Files Organized](./demo/4-file-organized.png)\n\nA fast, flexible, and safe command-line tool built in Rust to automatically organize messy folders into structured directories using customizable rules.\n\n---\n\n## Why This Project?\n\nMost people’s **Downloads folder is chaos** — images, PDFs, videos, code files all mixed together.\n\nThis tool solves that problem by:\n\n* Scanning your folders automatically\n* Applying smart, customizable rules\n* Organizing files into clean, structured directories\n* Doing it safely with preview (dry-run) support\n\n---\n\n## Features\n\n* ✅ Recursive file scanning\n* ✅ Rule-based file organization (via TOML config)\n* ✅ Dry-run mode (preview before moving files)\n* ✅ Safe file handling (no overwrites)\n* ✅ Progress bar for real-time feedback\n* ✅ Cross-platform support (Linux, macOS, Windows)\n* ✅ Clean error handling (no crashes)\n\n---\n\n## How It Works\n\n1. You provide a folder (e.g., Downloads)\n2. The tool scans all files recursively\n3. It applies rules defined in a config file\n4. Files are moved into categorized folders\n\n---\n\n## Example Usage\n\n```bash\n# Preview (safe mode)\nsmart-organizer ~/Downloads --dry-run\n\n# With custom config\nsmart-organizer ~/Downloads --config config.toml\n\n# Actual execution\nsmart-organizer ~/Downloads\n```\n\n---\n\n## Configuration (TOML)\n\nCreate a `config.toml` file:\n\n```toml\n[[rules]]\nname = \"Images\"\nextensions = [\"jpg\", \"png\", \"jpeg\"]\ndestination = \"Images\"\n\n[[rules]]\nname = \"Documents\"\nextensions = [\"pdf\", \"docx\", \"txt\"]\ndestination = \"Documents\"\n\n[[rules]]\nname = \"Reports\"\nextension = \"csv\"\nstarts_with = \"report_\"\ndestination = \"Data\"\n```\n\n---\n\n## 🧪 Dry Run Example\n\n```bash\nsmart-organizer ~/Downloads --dry-run\n```\n\nOutput:\n\n```\n[DRY RUN] photo.jpg → Images/\n[DRY RUN] report_2024.csv → Data/\n```\n\n---\n\n## 📊 Real Execution Example\n\n```\n✅ Moved → Downloads/Images/photo.jpg\n✅ Moved → Downloads/Documents/file.pdf\n⚠️ Skipped (already exists)\n```\n\n---\n\n## Project Structure\n\n```\nsrc/\n ├── main.rs        # Entry point\n ├── cli.rs         # CLI argument parsing\n ├── scanner.rs     # File scanning logic\n ├── config.rs      # Config loader (TOML)\n ├── rules.rs       # Rule engine (core logic)\n ├── mover.rs       # File moving logic\n ├── progress.rs    # Progress bar UI\n```\n\n---\n\n## Tech Stack\n\n* Rust 🦀\n* clap — CLI parsing\n* walkdir — directory traversal\n* serde + toml — config parsing\n* anyhow — error handling\n* dirs — system config paths\n* indicatif — progress bar\n\n---\n\n## 🛡️ Safety Features\n\n* ✔ Dry-run mode (preview before execution)\n* ✔ No file overwrite (skips duplicates)\n* ✔ Graceful error handling\n* ✔ Controlled file movement\n\n---\n\n## Installation\n\n```bash\ncargo build --release\n```\n\nRun:\n\n```bash\n./target/release/smart-file-organizer ~/Downloads\n```\n\n---\n\n## 👨‍💻 Author\n\nBuilt by Basant Singh using Rust to solve a real-world problem.\n\n---\n\n## ⭐ Support\n\nIf you like this project, consider giving it a ⭐ on GitHub!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasantsd%2Fsmart-file-organizer-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasantsd%2Fsmart-file-organizer-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasantsd%2Fsmart-file-organizer-cli/lists"}