Here is the first part of the project "Sorter"
File main_2.py has better code style(I recommend you to use it), but main.py is working too
Many people have a folder on their desktop named something like "Sort". Typically, this folder remains unsorted indefinitely.I wrote a script that will sort this folder
This program can sort such extension
- Images ('JPEG', 'PNG', 'JPG', 'SVG')
- Video files ('AVI', 'MP4', 'MOV', 'MKV')
- Documents ('DOC', 'DOCX', 'TXT', 'PDF', 'XLSX', 'PPTX')
- Music ('MP3', 'OGG', 'WAV', 'AMR')
- Archives ('ZIP', 'GZ', 'TAR')
- Unknown extensions
The output of the script includes:
- A list of files in each category (music, video, photos, etc.)
- A list of all recognized script extensions found in the target folder.
- A list of all extensions that are unknown to the script.
You can write this for MacOS python3 main.py the/way/to/the/dir
You can write this for Windows python main.py C:the\way\to\the\dir