https://github.com/joshuacalebdavids/autosorter
A Python script that automatically sorts and organizes files into folders based on file type; great for cleaning up downloads or dev directories.
https://github.com/joshuacalebdavids/autosorter
file-manager file-sorting python
Last synced: 3 months ago
JSON representation
A Python script that automatically sorts and organizes files into folders based on file type; great for cleaning up downloads or dev directories.
- Host: GitHub
- URL: https://github.com/joshuacalebdavids/autosorter
- Owner: joshuacalebdavids
- License: gpl-3.0
- Created: 2025-02-19T18:33:06.000Z (over 1 year ago)
- Default Branch: development
- Last Pushed: 2025-08-25T07:49:42.000Z (10 months ago)
- Last Synced: 2025-08-25T09:58:29.255Z (10 months ago)
- Topics: file-manager, file-sorting, python
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ποΈ Python Auto Sorter
A simple and effective Python script to automatically organize files in a given directory.
It sorts files by type (e.g. Images, PDFs, Code, etc.) into relevant folders; creating those folders if they donβt already exist.
---
## π¦ How to Use
1. Save the script as `organize_files.py`.
2. Replace `./your-folder-path-here` in the script with your actual folder path.
3. Run the script:
```bash
python organize_files.py
```
## π Supported File Types
| Category | Extensions |
| -------------- | ---------------------------------------------------------------------------------------------------------------- |
| **Images** | `.jpg`, `.jpeg`, `.png`, `.gif`, `.bmp`, `.svg`, `.webp` |
| **PDFs** | `.pdf` |
| **Word Docs** | `.doc`, `.docx` |
| **Code Files** | `.py`, `.js`, `.ts`, `.html`, `.css`, `.php`, `.cpp`, `.c`, `.java`, `.json`, `.xml`, `.sh`, `.rb`, `.go`, `.cs` |
## π§ Features
- Automatically detects and organizes supported file types.
- Creates destination folders if they don't exist.
- Lightweight, fast, and easy to modify.
## βοΈ Author
- [@JoshuaDavids](https://github.com/joshuacalebdavids/)
## π€ Support
Need help or have suggestions?
Email me at joshuadavids.jcd@gmail.com.