{"id":15413390,"url":"https://github.com/simonwep/cleanup-files","last_synced_at":"2025-10-12T02:07:15.329Z","repository":{"id":66334238,"uuid":"237649099","full_name":"simonwep/cleanup-files","owner":"simonwep","description":"🧼 Small utilities to cleanup directories such as download which are all the time full of random stuff.","archived":false,"fork":false,"pushed_at":"2021-07-15T15:05:55.000Z","size":78,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T07:19:58.806Z","etag":null,"topics":["cleanup-script","exe","executable","scripts-cli","tool","util","utility","utility-application"],"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/simonwep.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}},"created_at":"2020-02-01T17:14:45.000Z","updated_at":"2021-10-25T20:43:52.000Z","dependencies_parsed_at":"2024-01-27T00:04:54.088Z","dependency_job_id":"e1e342fb-5299-4169-ad52-7d5083ab6b8d","html_url":"https://github.com/simonwep/cleanup-files","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/simonwep/cleanup-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwep%2Fcleanup-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwep%2Fcleanup-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwep%2Fcleanup-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwep%2Fcleanup-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonwep","download_url":"https://codeload.github.com/simonwep/cleanup-files/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwep%2Fcleanup-files/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009915,"owners_count":26084666,"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-10-12T02:00:06.719Z","response_time":53,"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":["cleanup-script","exe","executable","scripts-cli","tool","util","utility","utility-application"],"created_at":"2024-10-01T16:56:54.494Z","updated_at":"2025-10-12T02:07:15.298Z","avatar_url":"https://github.com/simonwep.png","language":"Rust","readme":"\u003ch3 align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/30767528/73660959-80056800-4699-11ea-8516-4ec50f0e675b.png\" width=\"250\" alt=\"Logo\"\u003e\n\u003c/h3\u003e\n\n\u003ch3 align=\"center\"\u003e\n    Quickly clean up chaos\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Simonwep/cleanup-files/actions?query=workflow%3ACI\"\u003e\u003cimg\n     alt=\"Build Status\"\n     src=\"https://github.com/Simonwep/cleanup-files/workflows/CI/badge.svg\"\u003e\u003c/a\u003e\n  \u003cimg\n     alt=\"Download count\"\n     src=\"https://img.shields.io/github/downloads/Simonwep/cleanup-files/latest/total.svg?color=1C77D8\u0026style=popout-square\"/\u003e\n  \u003cimg alt=\"Current version\"\n       src=\"https://img.shields.io/github/tag/Simonwep/cleanup-files.svg?color=2D8ECE\u0026label=version\u0026style=flat-square\"\u003e\n  \u003ca href=\"https://github.com/sponsors/Simonwep\"\u003e\u003cimg\n     alt=\"Support me\"\n     src=\"https://img.shields.io/badge/github-support-3498DB.svg?style=popout-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n### Usage\n\n\u003e Disclaimer:  \n\u003e This project was intended to check out rust and learn its concepts and principles. The code is kept simple and I've re-invented a lot\n\u003e to learn how it works (I'm aware of libraries such as [`clap`](https://github.com/clap-rs/clap) and [`structop`](https://github.com/TeXitoi/structopt) to build CLIs)\n\nYou can find the latest release [here](releases), keep in mind that some commands may not exist in older versions.\n\n```bash\n$ ./cleanup -h\n```\n\n```\nUsage: cleanup \u003csource\u003e \u003ctarget\u003e [options...]\n\nFlags:\n  -d, --dry, --dry-run           Performs a dry-run, e.g. nothing get's moved.\n  -h, --help                     Prints this help text.\n  -v, --version                  Prints the current version.\n\nArguments:\n  -l, --log-file \u003cfile|boolean\u003e  Creates (or disables) a log-file in the target folder. Default is 'c\nleanup.log'.\n  -i, --include \u003cextensions...\u003e  Move only files with one of the following extensions.\n  -e, --exclude \u003cextensions...\u003e  Exclude certain files by their extension.\n\nValues:\n  \u003csource\u003e                       Source directory. Default is the current directory.\n  \u003ctarget\u003e                       Target directory (Default is source + .archive).\n```\n\n### Examples\n\n| Command | Explanation |\n| ------- | ----------- |\n| `./cleanup` | This will create a new `./.archive` in the current director and move all files (except these which start with a dot and the executable itself) into `.archive/[extension]/[file].[extension]`. |\n| `./cleanup . etc` | It'll still use the current dir as source (`.`) but will move the files into `./etc` instead of `./.archive`.|\n| `./cleanup -l --ext mp3,iso` | A `cleanup.log` file will be created inside of `./.archive` with information about what has been moved. Files with the exension `mp3` and `iso` are ignored and won't get moved. |\n| `./cleanup ../ ./bam --log-file ../my-log.txt` | Grabs file from the parent-directory and moves them into `./bam` (the current directory). The log-file will be create in the _\ncurrent_ directory and is this time `my-log.txt`. |\n\n### Building\n\nThis project is written in [rust](https://www.rust-lang.org), clone it via git:\n\n```bash\n$ git clone https://github.com/Simonwep/cleanup-files\n```\n\nAfterwards you can either run `cargo build` or `cargo test` to test the project.\n","funding_links":["https://github.com/sponsors/Simonwep"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonwep%2Fcleanup-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonwep%2Fcleanup-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonwep%2Fcleanup-files/lists"}