{"id":24206555,"url":"https://github.com/andyg2/desktoporganizer","last_synced_at":"2026-05-08T20:31:04.944Z","repository":{"id":172562523,"uuid":"649443347","full_name":"andyg2/DesktopOrganizer","owner":"andyg2","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-08T04:53:39.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T14:13:21.311Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andyg2.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}},"created_at":"2023-06-04T21:16:14.000Z","updated_at":"2023-06-04T21:16:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"317e80cf-5729-493d-8a3f-7b3f48888c13","html_url":"https://github.com/andyg2/DesktopOrganizer","commit_stats":null,"previous_names":["andyg2/desktoporganizer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andyg2/DesktopOrganizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyg2%2FDesktopOrganizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyg2%2FDesktopOrganizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyg2%2FDesktopOrganizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyg2%2FDesktopOrganizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyg2","download_url":"https://codeload.github.com/andyg2/DesktopOrganizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyg2%2FDesktopOrganizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32795848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"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":[],"created_at":"2025-01-14T00:34:20.945Z","updated_at":"2026-05-08T20:31:04.922Z","avatar_url":"https://github.com/andyg2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DesktopTidy\n\nA simple files organizer in Python to move files into subdirectories based on their types.\n\n## Author\n\n- [@andyg2](https://www.github.com/andyg2)\n\n## Installation\n\n`git clone https://github.com/andyg2/DesktopOrganizer.git`\n`cd DesktopOrganizer`\n\n## Documentation\n\n`python main.py /messy/directory`\n\nEvery file in that directory will be moved into a subdirectory based on the file type (configurable in config.json).\nSubdirectories are unaffected.\n\n### For example\n\n`/messy/directory/image.jpg` will be moved to `/messy/directory/Images/jpg/image.jpg`\n\n`/messy/directory/data.csv` will be moved to `/messy/directory/Documents/csv/data.csv`\n\nUnmatched file types will be moved to the `Other` directory.\n\n## Logging and reverting changes\n\nAll file movements are logged to the console and to a log file. The log file can also be parsed to revert those changes by executing a vevert command, which is also shown in the console\n\n```console\nMoved data.csv to /messy/directory/Documents/csv\nMoved Dropbox.zip to /messy/directory/Archives/zip\nMoved abc.url to /messy/directory/Other/url\n\nOrganized files successfully. Run the following command to revert the changes:\npython revert.py /script/path/logs/dtopy-2023-06-05-05-02-50-moved.log\n```\n\n## Configuration\n\nconfig.json - update to suit your needs\n\n```json\n{\n  \"extension_directory_map\": {\n    \".jpg\": \"Images\",\n    \".png\": \"Images\",\n    \".bmp\": \"Images\",\n    \".gif\": \"Images\",\n    \".mp3\": \"Music\",\n    \".wav\": \"Music\",\n    \".flac\": \"Music\",\n    \".mp4\": \"Videos\",\n    \".avi\": \"Videos\",\n    \".mkv\": \"Videos\",\n    \".docx\": \"Documents\",\n    \".xlsx\": \"Documents\",\n    \".pptx\": \"Documents\",\n    \".txt\": \"Documents\",\n    \".pdf\": \"Documents\",\n    \".csv\": \"Documents\",\n    \".html\": \"Documents\",\n    \".py\": \"Documents\",\n    \".java\": \"Documents\",\n    \".cpp\": \"Documents\",\n    \".ppt\": \"Documents\",\n    \".xls\": \"Documents\",\n    \".doc\": \"Documents\",\n    \".psd\": \"Documents\",\n    \".ai\": \"Documents\",\n    \".svg\": \"Documents\",\n    \".zip\": \"Archives\",\n    \".rar\": \"Archives\",\n    \".7z\": \"Archives\",\n    \".exe\": \"Programs\",\n    \".msi\": \"Programs\"\n  },\n  \"defaults\": {\n    \"default_directory\": \"Other\"\n  }\n}\n```\n\n## Notes\n\nThe repo consists of the following files and basic structure\n\n### config.py\n\n- import json\n\n### main.py\n\n- import os\n- import argparse\n- from organizer import organize_files\n\n### organizer.py\n\n- import os\n- import shutil\n- import datetime\n- from config import get_extension_directory_map, get_default_directory\n\n### revert.py\n\n- import os\n- import shutil\n- import datetime\n- import argparse\n- import json\n\n## Badges\n\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyg2%2Fdesktoporganizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyg2%2Fdesktoporganizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyg2%2Fdesktoporganizer/lists"}