Skip to content

Pawankumarsani/File_Organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Organizer (Python)

A simple Python script to automatically organize files in a directory by their file type (extension).
Each file type gets its own folder, making the directory clean and structured.


Features

  • Scans a base directory for files
  • Detects file extensions
  • Creates folders named after each extension (e.g., PDF, TXT, JPG)
  • Moves files into their respective folders
  • Skips duplicates if the file already exists in the destination

Usage

  1. Set the base_path variable to the folder you want to organize:
    base_path = r"C:\Users\admin\abc"

Before

abc/ |--- report.pdf |--- notes.txt |--- image.jpg

After running the code

abc/ |--- PDF/report.pdf |--- TXT/notes.txt |--- JPG/image.jpg

About

This program is a utility that automatically shorts and manages files in a directory based on predefined rules such as file type, extension, size. it scans a selected folder, categorizes files and moves them into structured folder and improves accessibility. This helps maintain a clean, efficient file system with minimal manual efforts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages