DhanushNehru / Python-Scripts

A curated list of python scripts for automating your tasks
https://dhanushnehru.github.io/Python-Scripts/
MIT License
551 stars 259 forks source link

File Organizer Script #339

Open max-lopzzz opened 1 month ago

max-lopzzz commented 1 month ago

Is your feature request related to a problem? Please describe. I'm always frustrated when I have a cluttered folder with files of various types scattered everywhere. It becomes difficult to find specific files quickly.

Describe the solution you'd like I would like to contribute a FileOrganizer.py script that organizes files in a specified directory by moving them into subfolders based on their file extensions. For example, all .jpg files would be moved to a folder named jpg, .pdf files to a pdf folder, etc. This will greatly enhance file management and accessibility.

Describe alternatives you've considered I considered manually organizing files or using other file management software, but they tend to be time-consuming and may not offer the flexibility of customizing how files are sorted.

Additional context The script takes a directory path as input and automatically creates subfolders for each file type if they don't already exist. It would be helpful for users who often deal with a large number of files.