A tiny Python script that sorts files into folders based on their type: Images, Documents, Videos, Audio, Code, Archives, and Other.
- Preview where files will go before making any changes
- Keep existing files safe by renaming duplicates (
photo (1).jpg) - Only organize files directly inside the folder you choose
- No external libraries needed, just Python 3.9+
- Open a terminal in the folder containing
tidy.py. - Preview what the script will do:
python tidy.py "C:\Users\YourName\Downloads"- To actually organize the files, run:
python tidy.py "C:\Users\YourName\Downloads" --applyOn macOS/Linux, replace the folder path with something like ~/Downloads.
Note: Files are moved, not copied. There is no undo command, so make sure to preview the changes first.
Before:
Downloads/
cat.jpg
notes.pdf
song.mp3
After:
Downloads/
Images/cat.jpg
Documents/notes.pdf
Audio/song.mp3