Skip to content

πŸ“‚ Automate the organization of your files with OrganizeMyFiles. This Python script categorizes and sorts files into predefined folders based on their extensions, keeping your directories tidy and organized. πŸ—‚οΈβœ¨

License

Notifications You must be signed in to change notification settings

GylanSalih/OrganizeMyFiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ‰ File Sorter πŸ—‚οΈ

Contributors Forks Stargazers Issues MIT License

File Sorter Logo

A user-friendly tool to automatically organize your files! This program categorizes files based on their types and places them into designated folders. Say goodbye to the hassle of manual file sorting! 😊


πŸ“‹ Table of Contents


πŸ“– Introduction

🎯 File Sorter is your go-to tool for organizing files in a folder automatically into predefined categories like Images, Documents, Videos, and more. With just a few clicks, you can transform a cluttered folder into an organized one. πŸš€


✨ Features

βœ… User-Friendly GUI: Built with tkinter, making it easy to use for everyone.
βœ… File Categorization: Organizes files into categories such as Images, Documents, and Videos.
βœ… Custom Sorting: Allows sorting by specific file types or all file types at once.
βœ… Multithreading: Uses concurrent file processing for faster sorting.
βœ… Duplicate Handling: Prevents overwriting by appending unique identifiers to duplicate filenames.
βœ… Empty Folder Cleanup: Automatically removes empty folders after sorting.
βœ… Detailed Logging: Keeps track of all operations in a log file for reference.


βš™οΈ Installation

To set up and use the File Sorter:

  1. Clone this repository:

    git clone https://github.com/yourusername/file-sorter.git
    cd file-sorter
  2. Install the required dependencies:

  3. Run the program:

    python file_sorter.py

πŸš€ Usage

  1. Launch the Program: Run the script, and the GUI will open.
  2. Select a Folder: Click the "Browse" button to select the folder you want to organize.
  3. Choose a File Type: Use the dropdown menu to select a category (e.g., Images, Documents, etc.) or choose "All Files" to sort everything.
  4. Start Sorting: Click the "Start Sorting" button. A success message will pop up once the files are sorted.

πŸ“‚ File Types

The following file types are supported:

Category Extensions
Images .jpg, .jpeg, .png, .gif, .svg, .bmp, .webp, .ico, .tiff
Documents .pdf, .docx, .txt, .xls, .xlsx, .ppt, .rtf, .odt, .ods
Videos .mp4, .mkv, .avi, .mov, .flv, .webm, .wmv
Audio .mp3, .wav, .flac, .aac, .ogg, .m4a
Archives .zip, .rar, .7z, .tar, .gz, .iso
Coding .py, .js, .html, .css, .json, .java, .cpp, .rb, .php
Installation Files .exe, .msi, .dmg, .pkg, .deb, .rpm
E-Books .epub, .mobi, .azw, .pdf
Fonts .ttf, .otf, .woff, .eot
Databases .db, .sqlite, .sql, .mdb
3D Models .obj, .fbx, .stl, .dae
Vector Graphics .ai, .eps, .svg, .cdr
Configurations .cfg, .ini, .yaml
Log Files .log, .out

πŸ“¦ Dependencies

The program relies on the following Python modules:

  • tkinter (built-in with Python)
  • requests
  • shutil
  • concurrent.futures

The script automatically installs missing dependencies.


πŸ”§ Configuration

  • Download Folder: Select your desired folder through the GUI.
  • File Type Selection: Choose specific file categories or sort all files.
  • Multithreading: The script uses ThreadPoolExecutor with 4 workers by default. Adjust the max_workers parameter in the code for higher performance if needed.

πŸ“œ Logging

All operations are logged in a file named OrganizeMyFiles.log. Logs include:

  • Successfully moved files
  • Duplicate files and their renamed versions
  • Errors encountered
  • Empty folders that were removed

πŸ–ΌοΈ Screenshots

Below are some screenshots of the application in action:

Main Interface
Figure 1: The main interface of the File Sorter

File Sorting Process
Figure 2: File sorting process is ended


🀝 Developers

Developed by:

🌟 Thank you for using our tool! Follow us on GitHub and give us a star if you find it useful! 🌟


πŸ“„ License

This project is licensed under the MIT License. You are free to use, modify, and distribute this software.


πŸš€ Enjoy organizing your files with ease!

About

πŸ“‚ Automate the organization of your files with OrganizeMyFiles. This Python script categorizes and sorts files into predefined folders based on their extensions, keeping your directories tidy and organized. πŸ—‚οΈβœ¨

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages