Skip to content

FileSorter is a Python-based script designed to automatically organize files into categorized folders based on their extensions. It helps keep directories tidy by grouping files into logical categories such as "Documents," "Images," "Music," etc.

Notifications You must be signed in to change notification settings

ibrahim-sisar/CS50P-final-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‚ FileSorter - Automated File Organizer

CS50P

πŸ“Œ Project Summary

FileSorter is a Python-based script designed to automatically organize files into categorized folders based on their extensions. It helps keep directories tidy by grouping files into logical categories such as "Documents," "Images," "Music," etc.


πŸ”Ή Features

  • βœ… Automated File Sorting: Moves files into predefined folders based on their extensions.
  • βœ… Customizable Categories: Users can add new file categories interactively.
  • βœ… Dynamic Configuration: Reads categories from a JSON file (file.json).
  • βœ… Cross-Platform Support: Works on Windows, macOS, and Linux.
  • βœ… Safe File Handling: Ensures smooth movement of files without conflicts.

πŸ”Ή How It Works

  1. The script scans a given directory for files.
  2. It reads file.json to determine which files belong to which category.
  3. Files are moved into their respective folders.
  4. Users can add new categories or view existing ones.

πŸ”Ή Usage

Run the script with:

python main.py <directory_path>

Example:

python main.py C:\Users\Username\Downloads

πŸ›  Future Enhancements

  • βœ… Support for sorting by file size, date, or type.
  • βœ… GUI version for easier usability.
  • βœ… Multi-threading for faster sorting.

About

FileSorter is a Python-based script designed to automatically organize files into categorized folders based on their extensions. It helps keep directories tidy by grouping files into logical categories such as "Documents," "Images," "Music," etc.

Topics

Resources

Stars

Watchers

Forks

Languages