Skip to content

A lightweight Python script that automatically organizes files in a folder by their extensions. It scans a given directory, then moves files into categorized subfolders. If duplicate filenames exist, it auto-renames them to avoid overwriting.

Notifications You must be signed in to change notification settings

PrathibhaSithu/Python-File-Organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‚ Simple File Organizer

A lightweight Python script that automatically organizes files in a folder by their extensions.

It scans a given directory, then moves files into categorized subfolders (e.g., .jpg β†’ Images, .pdf β†’ Documents).
If duplicate filenames exist, it auto-renames them to avoid overwriting.


✨ Features

  • πŸ“‘ Organizes files into categories:

    • Images (.jpg, .png, .gif, .svg, ...)
    • Videos (.mp4, .mkv, .mov, ...)
    • Audio (.mp3, .wav, ...)
    • Documents (.pdf, .docx, .txt, ...)
    • Code (.py, .js, .html, ...)
    • Archives (.zip, .rar, .7z, ...)
    • Installers (.exe, .msi, .apk, ...)
    • Others (unknown extensions)
  • πŸš€ Creates missing folders automatically.

  • πŸ”„ Handles file name conflicts (file.txt β†’ file (1).txt).

  • πŸ”’ Skips locked files gracefully.

  • πŸ“¦ Works across platforms (Windows, Linux, macOS).


πŸ› οΈ Installation

  1. Clone this repo:
    git clone https://github.com/yourusername/file-organizer.git
    cd file-organizer

⭐ If you like this project, don't forget to star the repository! ⭐

About

A lightweight Python script that automatically organizes files in a folder by their extensions. It scans a given directory, then moves files into categorized subfolders. If duplicate filenames exist, it auto-renames them to avoid overwriting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages