The Python File Organizer is a simple yet powerful script that helps you keep your files organized and easily accessible. It automatically sorts files in a directory based on their file types and moves them into separate folders.
- Organizes files based on their file extensions (e.g., .pdf, .docx, .jpg) you can add more
- Creates separate directories for each file type
- Moves files into their respective directories
- Supports customization for additional file extensions
- Clone or download the repository to your local machine.
- Open a terminal or command prompt and navigate to the directory containing the
file_organizer.py
script. - Run the script with the following command:
python file_organizer.py
- When prompted, enter the path to the directory you want to organize.
- The script will create separate directories for the specified file types and move the corresponding files into those directories.
- Once completed, you'll see a "File organization completed" message in the terminal.
You can easily customize the script to suit your needs by modifying the dest_dirs
dictionary in the file_organizer.py
file. Add or remove key-value pairs to include or exclude file extensions and their corresponding destination directory names.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.