Skip to content

khatijoel7/python-file-organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Python File Organizer

Overview

Python File Organizer is a simple automation tool that automatically sorts files into folders based on their file type. The script scans a selected directory, identifies file extensions, creates category folders if they do not exist, and moves files into the appropriate locations.

This project demonstrates Python automation, file system operations, and basic scripting concepts.

Features

  • Automatically organizes files by type
  • Creates folders automatically when needed
  • Supports images, documents, videos, and archive files
  • Reduces manual file management
  • Easy to customize with additional file categories

Technologies Used

  • Python 3
  • os module
  • shutil module

Supported Categories

Category File Types
Images .jpg, .jpeg, .png, .gif
Documents .pdf, .docx, .txt
Videos .mp4, .avi, .mov
Archives .zip, .rar, .7z

Project Structure

FileAutomationProject/

├── file_organizer.py

└── test_files/

    ├── Images/

    ├── Documents/

    ├── Videos/

    └── Archives/

Example

Before Organization

photo.jpg

resume.pdf

notes.txt

movie.mp4

archive.zip

After Organization

Images/photo.jpg

Documents/resume.pdf

Documents/notes.txt

Videos/movie.mp4

Archives/archive.zip

How to Run

  1. Install Python 3.
  2. Place files inside the test_files folder.
  3. Open a terminal in the project directory.
  4. Run:

python file_organizer.py

  1. The files will be automatically sorted into their respective folders.

Skills Demonstrated

  • Python Programming
  • Automation
  • File Management
  • Problem Solving
  • Technical Documentation
  • File System Operations

Author

Joel Khati

About

Python-based file management automation tool using file system operations to automatically categorize and organize files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages