Skip to content

LIXUN22/file-organizer-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗂️ File Organizer

A simple Python script that helps you automatically organize files in a folder by their types. The script sorts files into categories like Documents, Images, Videos, Audio, Archives, and Code.


📁 How It Works

This script scans the specified folder, identifies each file type by extension, and moves files into subfolders like Documents, Images, etc.

For example:

  • report.docxDocuments/
  • photo.jpgImages/
  • script.pyCode/

🖥️ Screenshot: Before & After

Before:

photo_3_2025-07-26_17-43-30

After:

photo_2_2025-07-26_17-43-30


🧩 Supported File Types

Here are the file types grouped by category:

Click to expand

📄 Documents

.pdf, .doc, .docx, .txt, .rtf, .odt, .pages, .xls, .xlsx, .csv, .ppt, .pptx, .odp

🖼️ Images

.jpg, .jpeg, .png, .gif, .bmp, .tiff, .svg, .webp, .ico, .raw, .heic, .avif

🎞️ Videos

.mp4, .avi, .mov, .wmv, .flv, .webm, .mkv, .m4v, .3gp, .mpg, .mpeg

🎧 Audio

.mp3, .wav, .flac, .aac, .ogg, .wma, .m4a, .opus, .aiff

📦 Archives

.zip, .rar, .7z, .tar, .gz, .bz2, .xz, .tar.gz, .tar.bz2

💻 Code

.py, .js, .html, .css, .java, .cpp, .c, .php, .rb, .go, .rs, .ts, .jsx, .vue


🚀 Getting Started

Prerequisites

  • Python 3.x installed
  • Basic terminal/command prompt usage

Usage

  1. Clone or download this repository
  2. Open a terminal and navigate to the project folder
  3. Run the script:
python main.py

Instructions

photo_1_2025-07-26_17-43-30

photo_4_2025-07-26_17-43-30

photo_5_2025-07-26_17-43-30

About

A Python script to organize files into folders automatically based on file type.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •