This project is an advanced Python script for automating the organization of files within a directory. It sorts files based on their types or extensions into designated folders, improving file management efficiency.
- File Type Detection: Automatically detects file types or extensions.
- Customizable Rules: Allows customization of rules for organizing files into folders.
- Logging: Logs file movements and errors for review.
- Error Handling: Handles exceptions gracefully.
-
Clone the repository:
git clone https://github.com/anesu398/file-organization-automation.git
-
Navigate to the project directory:
cd file-organization-automation
-
Install dependencies (if any):
pip install -r requirements.txt
-
Configure the organization rules in the
config.py
file. You can define rules based on file extensions and destination folders.# Example rules ORGANIZATION_RULES = { 'Images': ['.jpg', '.jpeg', '.png', '.gif'], 'Documents': ['.pdf', '.doc', '.docx', '.txt'], 'Videos': ['.mp4', '.mov', '.avi'], # Add more rules as needed }
-
Run the script:
python organize_files.py
-
Review the log file (
file_organization.log
) for details on file movements and errors.
Contributions are welcome! If you have any suggestions, feature requests, or find any issues, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.