{"id":18666714,"url":"https://github.com/phaalonso/fileorganizer","last_synced_at":"2025-07-14T13:07:50.852Z","repository":{"id":123534645,"uuid":"263948117","full_name":"phaalonso/FileOrganizer","owner":"phaalonso","description":"This is a script written in python that will organize files in your directory.","archived":false,"fork":false,"pushed_at":"2020-06-19T14:25:47.000Z","size":39,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-14T08:04:57.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phaalonso.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}},"created_at":"2020-05-14T15:09:37.000Z","updated_at":"2020-09-29T23:54:19.000Z","dependencies_parsed_at":"2024-06-24T15:21:36.389Z","dependency_job_id":null,"html_url":"https://github.com/phaalonso/FileOrganizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phaalonso/FileOrganizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaalonso%2FFileOrganizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaalonso%2FFileOrganizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaalonso%2FFileOrganizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaalonso%2FFileOrganizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phaalonso","download_url":"https://codeload.github.com/phaalonso/FileOrganizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaalonso%2FFileOrganizer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265297036,"owners_count":23742585,"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","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":[],"created_at":"2024-11-07T08:33:43.427Z","updated_at":"2025-07-14T13:07:50.798Z","avatar_url":"https://github.com/phaalonso.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File Organizer\n\nThis sricpt can be utilised to organize files by the file extensio.\n\n## How to use\n\nYou can simply call `python3 src/organizer.py \u003cpath_to_dir\u003e` passing the path to the dir that you want to organize! :D (this works on all operating systems)\n\nIn linux:\n - you can give the file permission to execute with `chmod +x src/organizer.py` and run the program with `.src/organizer.py \u003cpath_to_dir\u003e`.\n - or add a symbolic link using `sudo ln -s FileOrganizer/src/organizer.py /usr/local/bin/organizer` and call the program with `organizer \u003cpath_to_dir\u003e`\n\n## Configs\nThe default config file is in `src/defaults.json`\n\nIf you want to make some modifications will have to follow this format: \n```json\n{\n    \"extension\": {\n    \t\"ignore\": [\n            \"iso\"\n        ],\n        \"customDirs\": {\n            \"zip\": \"Compactados\",\n            \"extension\": \"Dir name\"\n    \t}\n    },\n    \"name\": {\n        \"ignore\": [],\n        \"customDirs\": {\n            \"BD1C3\": \"Banco de Dados 1\",\n            \"name that the file have in the start or in the end\": \"dirName\"\n        }\n    }\n}\n\n\n```\n\n## TO DO\n- [X] Sort files in a given path\n\n- [X] Receives the dir path as a arg\n\n- [X] Ignore files types of a determined list\n\n- [X] Ignore files with size above 1 GB\n\n- [X] Process args \n  - [X] Create a arg parser\n\n  - [X] Receive the `-v` or `--verbose` to activate the log in command line\n\n  - [X] Receive the `-m \u003csize\u003e` or `--minSize \u003csize\u003e` arg to especify the minimun size of the file that will be moved\n\n  - [X] Receive the `-M \u003csize\u003e` or `--maxSize \u003csize\u003e` arg to especify the max size of the file that will be moved \n\n  - [X] Receive the `-i \u003ctype\u003e` or `--ignore \u003ctype\u003e` to ignore a determined file type\n\n  - [X] Receive the `-I` or `--ignoreDefault` to ignore the default ignored files\n\n  - [X] Receive the `-c \u003ctype\u003e \u003cdir_name\u003e` or `--custom \u003ctype\u003e \u003cdir_name\u003e` to temporaly sorty the determined file type in a custom dir\n\n- [X] Sort by file name\n  - [X] Change the structure of the `src/defaults.json` file to separate extension and name sorting\n  - [X] Permite select the sorting of a file by it's name\n  - [X] Permite to ignore a file by it's name\n\n- [ ] REGEX\n  - [ ] Receive the `-f \u003cregex\u003e` or `--file \u003cregex\u003e` to process only the files that respect the regex \n  \n  - [ ] Store regex as a default custom, so the files that correspond to it will be moved to a custom file\n    *So file like 'HomeWork.txt' can be parsed to the custom dir '~/Documents/University/HomeWork/'\n\n## BUG FIX\n- [X] Fixing a bug, that ocurs when calling `src/organizer.py` in others dirs because it can't find the `src/defaults.json` file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphaalonso%2Ffileorganizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphaalonso%2Ffileorganizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphaalonso%2Ffileorganizer/lists"}