{"id":30517522,"url":"https://github.com/noobping/organizer","last_synced_at":"2025-08-26T11:17:17.434Z","repository":{"id":309932761,"uuid":"1038087668","full_name":"noobping/organizer","owner":"noobping","description":"Rust CLI to organize, deduplicate, and clean large data trees","archived":false,"fork":false,"pushed_at":"2025-08-14T16:05:25.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-14T17:33:47.138Z","etag":null,"topics":["ai-generated-code","cli-tool","duplicate-detection","files","folder-structure","folders","organizer","rust","rust-tool"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noobping.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-08-14T15:45:21.000Z","updated_at":"2025-08-14T16:03:07.000Z","dependencies_parsed_at":"2025-08-14T17:33:52.836Z","dependency_job_id":"64c761a5-d8ad-4f29-93e7-2e82a7f93317","html_url":"https://github.com/noobping/organizer","commit_stats":null,"previous_names":["noobping/organizer"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/noobping/organizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noobping%2Forganizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noobping%2Forganizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noobping%2Forganizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noobping%2Forganizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noobping","download_url":"https://codeload.github.com/noobping/organizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noobping%2Forganizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272214383,"owners_count":24893197,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ai-generated-code","cli-tool","duplicate-detection","files","folder-structure","folders","organizer","rust","rust-tool"],"created_at":"2025-08-26T11:17:13.901Z","updated_at":"2025-08-26T11:17:17.428Z","avatar_url":"https://github.com/noobping.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build](https://github.com/noobping/organizer/actions/workflows/build.yml/badge.svg)](https://github.com/noobping/organizer/actions/workflows/build.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-default.svg)](https://opensource.org/licenses/MIT)\n\n# Organizer\n\nRust CLI to **organize, deduplicate, and clean** large data trees.\n\n## ✨ Features\n\n- **Default is DRY-RUN.** Add `--apply` to actually move/delete.\n- Categories: `Media, Music, Documents, Archives, Projects, GitRepos, Backups, Others`\n- Detects **home-folder backups**, **git repos** (bare and working), and **code projects** to move **as a whole**.\n- Uses extension lists with optional content sniffing (`--use-file_cmd` to call `file(1)`; otherwise uses the Rust `infer` crate).\n- Removes broken symlinks and known temp/cache files (configurable).\n- Optional **duplicate removal** with `--dedup` (`name`, `size`, `hash`, or `all`).\n\nTested on Fedora Silverblue-style systems (immutable host). Moving uses `rename(2)` where possible, avoiding copies.\n\n## 🚀 Build\n\n```bash\ncd organizer\ncargo build --release\n```\n\nBinary at `target/release/organizer`.\n\n## 📦 Usage Examples\n\n```bash\n# Dry run (default), organize current directory into categories at root\norganizer .\n\n# Actually apply moves/deletes\norganizer --apply /mnt\n\n# Organize under \"Organized\" inside /mnt\norganizer --apply --under Organized /mnt\n\n# Deduplicate by size and hash\norganizer --apply --dedup size --dedup hash /mnt\n\n# Deduplicate using all methods\norganizer --apply --dedup all /mnt\n\n# Skip cleaning temp/cache files\norganizer --apply --no-clean /mnt\n\n# Log all actions to a file\norganizer --apply --log-file /mnt/organize.log /mnt\n```\n\n## ⚙️ Configuration\n\nOn first run, default config files are created at: `~/.config/organizer/`.\n\n| Config File              | Purpose                               |\n|--------------------------|---------------------------------------|\n| `media_extensions.txt`   | File extensions for Media category    |\n| `audio_extensions.txt`   | File extensions for Music category    |\n| `document_extensions.txt`| File extensions for Documents         |\n| `archive_extensions.txt` | File extensions for Archives          |\n| `code_extensions.txt`    | File extensions for Code Projects     |\n| `home_markers.txt`       | Patterns for detecting home backups   |\n| `delete_patterns.txt`    | Patterns for cleaning temp/cache files|\n\nEach file is a plain list **one item per line**.\n\n## 📌 Notes\n\n- Moves use `rename(2)` — no copies unless crossing filesystems with `--allow-cross-device`.\n- Cross-device moves will **copy then delete** (slower, needs space).\n- Symlinks are not followed by default.\n- Broken symlinks are removed with `--clean`.\n- Single code files aren’t treated as projects (avoids scattering).\n\n## 🛠 Design Philosophy\n\nManaging large, disorganized archives is tedious. This tool aims to:\n\n1. **Classify files** into meaningful categories.\n2. **Preserve structure** for projects, backups, and special folders.\n3. **Clean junk** safely (caches, broken links).\n4. **Eliminate duplicates** to save space.\n5. Provide **full transparency** with logs and dry-run previews.\n\nMore in the [design document](Design.md).\n\n## 🙌 Acknowledgements\n\nInspired by tools like [`fclones`](https://github.com/pkolaczk/fclones) and [`rmlint`](https://rmlint.readthedocs.io/). \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoobping%2Forganizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoobping%2Forganizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoobping%2Forganizer/lists"}