A command-line script that organizes your files by extension and moves them into the folders you want.
- Shortcuts: Type
downloads,desktop,documents, orpicturesinstead of pasting full folder paths. - Sort by extension: Type
png jpg pdfand the script moves those exact file types at the same time. - No overwriting: If a file with the same name is already in your target folder, the script skips it.
- File info: As files move, the terminal shows their size in MB and when they were created or modified.
- Skips system files: Ignores folders and hidden files like
.DS_Storeso it only moves what you actually want.
# Clone the repository
git clone [https://github.com/6augt/python-file-sorter.git](https://github.com/6augt/python-file-sorter.git)
# Go into the folder
cd python-file-sorter
# Run the script
python main.py