Automatically organize files in a folder into subfolders based on their type.
- Enclose the path of the folder you want to organize within the quotation marks "" in:
source_folder = r"PathHere"
- In the terminal, inside the folder containing the code, run: python FileSorter.py
- Creates folders within the current folder and moves the files according to their extensions:
• .png, .jpg, and .gif are placed in the Img folder • .pdf, .xml are placed in the Documents folder • .exe, and .msi are placed in the Installers folder