An open API service indexing awesome lists of open source software.

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.

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.