Skip to content

Jyotprabhs/File-Organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

File Organizer

A python tool to automatically distribute the files to specific folders to organize it efficiently.

Features

  • Accepts any folder path as input
  • Automatically sorts files by type:
    • Images (.jpeg, .jpg, .png) → images/
    • PDFs (.pdf) → pdfs/
    • Data files (.csv) → data/
    • Documents (.docx, .txt) → documents/
  • Skips unknown file types gracefully
  • Creates destination folders automatically

Supported File Types

Extension Destination
.jpeg, .jpg, .png images/
.pdf pdfs/
.csv data/
.docx, .txt documents/
.exe software/
.py python_files/
.zip zip_files/
.pptx presentations/
.java java_files/

How to run

python organizer.py

Sample Output

Enter the file to be organized:test_file
Graph.jpeg -> goes to -> images
Skipping images - unknown type
Introduction_to_algorithms-3rd Edition.pdf -> goes to -> pdfs
LogisticRegression.jpeg -> goes to -> images
Skipping pdfs - unknown type
Team_Group2_Proposal.pdf -> goes to -> pdfs

Organization complete! ✅

Technology Used

  • Python 3
  • os - file and folder operations
  • shutil - moving files between directories

About

An automation script

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages