Welcome to the File Organizer — an efficient tool designed to automate the organization of your files. Utilizing Python this script sorts files into categorized folders based on their extensions, ensuring a neat and orderly directory structure.
Ideal for professionals, students, and anyone alike with a cluttered downloads folder, the File Organizer simplifies file management by automatically sorting documents, images, videos, and more into specific folders. No more manual sorting or losing track of important files!
- Automated File Sorting: Automatically categorizes and moves files into relevant folders based on file type.
- Customizable Categories: Easily modify the script to include additional file types and categories.
- Handles Miscellaneous Files: Places unclassified files into an "Others" folder, ensuring no file is left unsorted.
- Effortless Setup: Simple to set up and use, with minimal configuration required.
os
for interacting with the operating system.shutil
for high-level file operations like moving and copying files.- Python's
logging
module for error logging and debugging.
Before running the File Organizer, ensure you have the following installed:
- Python: Ensure Python 3.x is installed on your system. Download Python.
- Before running the script set the
base_path
variable to the directory you want to organize base_path = 'C:/Users/username/Downloads' Replace with your directory path
- Navigate to your directory from your terminal or command line containing 'file_organizer.py' and execute the script:
python file_organizer.py
orpython3 file_organizer.py