{"id":20651979,"url":"https://github.com/foiovituh/mfr","last_synced_at":"2026-05-31T02:31:39.540Z","repository":{"id":247010000,"uuid":"823438816","full_name":"foiovituh/mfr","owner":"foiovituh","description":"Rename all files in a directory using a specified pattern 📂","archived":false,"fork":false,"pushed_at":"2024-07-06T21:36:33.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-09T21:00:03.323Z","etag":null,"topics":["filesystem","go","io","rename-files","rename-script","renamer-utility"],"latest_commit_sha":null,"homepage":"","language":"Go","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/foiovituh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2024-07-03T03:30:43.000Z","updated_at":"2024-07-06T21:36:36.000Z","dependencies_parsed_at":"2024-11-16T17:31:55.009Z","dependency_job_id":"f7bef423-95a6-4230-98f6-7229b869901d","html_url":"https://github.com/foiovituh/mfr","commit_stats":null,"previous_names":["foiovituh/mfr"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/foiovituh/mfr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foiovituh%2Fmfr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foiovituh%2Fmfr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foiovituh%2Fmfr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foiovituh%2Fmfr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foiovituh","download_url":"https://codeload.github.com/foiovituh/mfr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foiovituh%2Fmfr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33717415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":["filesystem","go","io","rename-files","rename-script","renamer-utility"],"created_at":"2024-11-16T17:31:17.164Z","updated_at":"2026-05-31T02:31:39.520Z","avatar_url":"https://github.com/foiovituh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MFR 📂\nGo program that renames all files in a directory using a specified pattern.\n\n## Requirements 🔗\n\u003cb\u003eOS\u003c/b\u003e:\n- Linux\n- Windows\n- macOS (née OS X, aka Darwin)\n- OpenBSD\n- DragonFly BSD\n- FreeBSD\n- NetBSD\n- Solaris\n\n\u003cb\u003eTo build\u003c/b\u003e:\n- Go compiler\n\n## Quick usage guide 📚\n#### Build:\n```\ngo build -o mfr cmd/main.go\n```\n\n\u003cbr\u003e\n\n\u003e \u003cb\u003eNOTE\u003c/b\u003e: Generate in the root directory of the project\n\n---\n\n#### Arguments:\n```\n  -d=string\n        [REQUIRED] Full directory path to rename all files\n  -e=string\n        [OPTIONAL] Filter files containing the extension\n  -p=string\n        [OPTIONAL] Pattern to apply in the file renaming process (default \"file-\")\n\n```\n\n---\n\n#### Basic usage example:\n```\n./mfr -d=/home/you/test/\n```\n\n- Before:\n```\n/home/you/test/\n├── text.txt\n├── image.png\n├── document.pdf\n└── program.java\n```\n\n- After:\n```\n/home/you/test/\n├── file-1.txt\n├── file-2.png\n├── file-3.pdf\n└── file-4.java\n```\n\n---\n\n#### Example of pattern customization and extension filter:\n```\n./mfr -d=/home/you/test/ -p=photo -e=.png\n```\n\n- Before:\n```\n/home/you/test/\n├── text.txt\n├── image.png\n├── other-image.png\n├── document.pdf\n└── program.java\n```\n\n- After:\n```\n/home/you/test/\n├── text.txt\n├── photo-1.png\n├── photo-2.png\n├── document.pdf\n└── program.java\n```\n\n## Future plans 📌\n- Write more tests\n- Allow customized sorting\n- Create a backup of the renamed files\n- Ask for confirmation in important directories\n\n## Do you want help me? 👥\nIf you have any ideas or wish to contribute to the project, contact me on X (\u003ca href=\"https://x.com/ohtoaki\" target=\"_blank\"\u003e@ohtoaki\u003c/a\u003e) or send me a pull request :)\n\n## License 🏳️\n```\nMIT License\n\nCopyright (c) 2024 Vitu Ohto\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoiovituh%2Fmfr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoiovituh%2Fmfr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoiovituh%2Fmfr/lists"}