{"id":37136935,"url":"https://github.com/kiduzk/fileo","last_synced_at":"2026-01-14T15:57:42.970Z","repository":{"id":289774703,"uuid":"924467399","full_name":"Kiduzk/fileo","owner":"Kiduzk","description":"Easy to use and customizable file organizer cli written in Go","archived":false,"fork":false,"pushed_at":"2025-11-18T01:02:39.000Z","size":4424,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-18T02:23:34.811Z","etag":null,"topics":["cli","configuration","file-organizer","files","go","regex","yaml"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Kiduzk.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":"2025-01-30T03:59:12.000Z","updated_at":"2025-11-18T01:02:43.000Z","dependencies_parsed_at":"2025-04-25T01:49:34.936Z","dependency_job_id":null,"html_url":"https://github.com/Kiduzk/fileo","commit_stats":null,"previous_names":["kiduzk/fileo"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Kiduzk/fileo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kiduzk%2Ffileo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kiduzk%2Ffileo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kiduzk%2Ffileo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kiduzk%2Ffileo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kiduzk","download_url":"https://codeload.github.com/Kiduzk/fileo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kiduzk%2Ffileo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28425587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T15:24:48.085Z","status":"ssl_error","status_checked_at":"2026-01-14T15:23:41.940Z","response_time":107,"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":["cli","configuration","file-organizer","files","go","regex","yaml"],"created_at":"2026-01-14T15:57:42.380Z","updated_at":"2026-01-14T15:57:42.956Z","avatar_url":"https://github.com/Kiduzk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# fileo (FileOrganizer)\r\n \r\nEasy to use and customizable file organizer cli written in Go. Supports the following:\r\n- Matching files using a regex pattern\r\n- Matching files using an extension\r\n- Option for a recursive search to match files within all nested directories\r\n- Ability to specify a config file for batch processes (default config provided)\r\n\r\nAs of right now, `fileo` only copies files and does not move/delete anything. \r\n\r\n### Installation\r\n\r\nIf you have go installed, run:\r\n```bash\r\ngo install github.com/kiduzk/fileo@latest\r\n```\r\nIf you do not have go installed, you can download the appropriate binary from the releases section and add fileo to your path. \r\n\r\n### How to use \r\n\r\nFor example, lets put all PDFs into a new folder named pdf_documents.\r\n```bash\r\nfileo -ext pdf -output pdf_documents\r\n```\r\nYou can also use the shorthand:\r\n```bash\r\nfileo -e pdf -o pdf_documents\r\n```\r\nNext, lets filter out PDFs with a date in their names using regex flag `-pattern` (or simply `-p`):\r\n```bash\r\nfileo -e pdf -o pdf_documents -p \"\\d{4}-\\d{2}-\\d{2}\"\r\n```\r\n\r\nLastly, we also have option to recursively consider files within subfolders using the `-recurse` flag (or simply `-r`).\r\n```bash\r\nfileo -e pdf -o pdf_documents -r\r\n```\r\n\r\nFileo also provides an option to specify a config file. You can generate a config by running the following command which will create a default one for you. \r\n```bash\r\nfileo -config-create\r\n```\r\nThis file will look as follows:\r\n```yaml\r\n# This is a sample config file\r\n\r\n\r\n# Filters out all documents (txt, pdf and docx) which have dates in their names\r\n- name: 'dated_documents'\r\n  recurse: True\r\n  patterns: ['\\d{4}-\\d{2}-\\d{2}']\r\n  extensions: ['txt', 'pdf', 'docx']\r\n\r\n\r\n# You can also nest folders within folders. A more complex use case might look like the following. \r\n\r\n# Filters out all documents (txt, pdf and docx)\r\nfolders:\r\n- name: 'all_documents'\r\n  extensions: ['txt', 'pdf', 'docx']\r\n\r\n  # Create a sub-folders to filter out the txt and PDFs into their own folder.\r\n  # represents the directory: all_documents/text_and_PDFS \r\n  folders:\r\n    - name: \"text_and_pdf\"\r\n      extensions: ['txt', 'pdf']\r\n\r\n      # Puts the text files further into their own folder\r\n      # represents the directory: all_documents/text_and_PDFS/text \r\n      folders:\r\n        - name: \"text\"\r\n          extensions: [\"txt\"]\r\n\r\n    # Puts the word files into their own directory\r\n    - name: \"words\"\r\n      extensions: [\"docx\"]\r\n \r\n```\r\nThe above config will generate the following structure provided that the current directory contains .txt, .pdf and .docx files. Unmatched folders will not be created (can be changed if needed).\r\n```\r\nall_documents/                # Matches: txt, pdf, docx\r\n├── text_and_pdfs/            # Matches: txt, pdf\r\n│   ├── text/                 # Matches: txt only\r\n│   └── (pdfs here)           # Matches: pdf only\r\n└── words/                    # Matches: docx only\r\n```\r\n\r\nFinally, to apply the config file to the current directory simply use:\r\n```bash\r\nfileo -config-apply\r\n```\r\n**Note**: A file will be copied to the deepest matching directory only within a branch. If it matches multiple sibling subdirectories, it will be copied to all of them. This behavior is the current default but can be changed/modified. Any feedback is appreciated!\r\n\r\nSome additional feature ideas:\r\n- Support the option for a live preview of what a config would do before actually applying it\r\n- Have support for a move functionality instead of just copy (a bit risky, but if there is a live preview feature then it might make it more safer)\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiduzk%2Ffileo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiduzk%2Ffileo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiduzk%2Ffileo/lists"}