Skip to content

Automatically sorts files into categorized folders like Images, Videos, Audios, Documents, Archives, Executables, Code, and Other for easy organization.

Notifications You must be signed in to change notification settings

DilanHansaja/Simple_File_Organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‚ File Organizer

A simple Python script to organize files in a directory by categorizing them into folders.

πŸš€ Features

  • Automatically sorts files into Images, Videos, Audios, Documents, Archives, Executables, Codes, and Other folders.
  • Handles duplicate files and prevents overwriting.
  • Provides a progress percentage while organizing files.
  • Easy-to-use command-line interface.

πŸ“œ Installation

Download the Python script and run it directly:

  1. Download file_organizer.py from here.
  2. Open the command prompt and navigate to the path that script downloaded.
  3. Run the script using:
  4. python file_organizer.py
  5. Follow the on-screen instructions to confirm file organization.

πŸ“‚ File Categories

  • Images: jpg, jpeg, png, gif, bmp, tiff, webp, svg, ico, heif, heic, raw, jfif
  • Videos: mp4, avi, mkv, mov, flv, wmv, webm, mpeg, 3gp, m4v, ts
  • Audios: mp3, wav, aac, flac, ogg, m4a, wma, opus, aiff, amr
  • Documents: pdf, doc, docx, ppt, pptx, xls, xlsx, txt, rtf, odt, ods, odp, csv, md
  • Archives: zip, rar, 7z, tar, gz, bz2, xz, iso
  • Executables: exe, msi, bat, sh, apk, dmg
  • Codes: html, css, js, json, xml, java, py, c, cpp, cs, php, rb, go, ts, sql
  • Other: psd, ai, eps, indd, sketch, and all other extensions

πŸ“Œ Example

Before running the script:

    πŸ“ Downloads
    β”œβ”€β”€ image1.jpg
    β”œβ”€β”€ song.mp3
    β”œβ”€β”€ document.pdf
    β”œβ”€β”€ video.mp4
    β”œβ”€β”€ archive.zip
    β”œβ”€β”€ script.js
    β”œβ”€β”€ program.exe
    

After running the script:

    πŸ“ Downloads
    β”œβ”€β”€ πŸ“‚ Images
    β”‚   β”œβ”€β”€ image1.jpg
    β”œβ”€β”€ πŸ“‚ Audios
    β”‚   β”œβ”€β”€ song.mp3
    β”œβ”€β”€ πŸ“‚ Documents
    β”‚   β”œβ”€β”€ document.pdf
    β”œβ”€β”€ πŸ“‚ Videos
    β”‚   β”œβ”€β”€ video.mp4
    β”œβ”€β”€ πŸ“‚ Archives
    β”‚   β”œβ”€β”€ archive.zip
    β”œβ”€β”€ πŸ“‚ Code
    β”‚   β”œβ”€β”€ script.js
    β”œβ”€β”€ πŸ“‚ Executables
    β”‚   β”œβ”€β”€ program.exe
    

πŸ“ License

This project is open-source. Feel free to modify and distribute it.

About

Automatically sorts files into categorized folders like Images, Videos, Audios, Documents, Archives, Executables, Code, and Other for easy organization.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages