Skip to content

A simple Python script that organizes files in a directory into folders by extension. Useful for automation, productivity, and desktop cleanup tasks.

Notifications You must be signed in to change notification settings

aizazullahdurrani8/python-file-organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Python File Organizer

A simple Python script that organizes files in a specified directory into folders based on their file extensions.

Features

  • Automatically creates folders for each file extension (e.g., pdf_files, jpg_files).
  • Moves files into their respective folders for better organization.
  • Easy to use with a simple command-line interface.

Requirements

  • Python 3 installed on your system.

Usage

  1. Clone or download this repository.
  2. Run the script using Python:
python file_organizer.py
  1. When prompted, enter the full path of the directory you want to organize.
  2. The script will create folders and move files accordingly.

Example

If your folder contains files:

report.pdf
photo.jpg
notes.txt

After running the script, the folder structure will be:

pdf_files/report.pdf
jpg_files/photo.jpg
txt_files/notes.txt

Notes

  • Make sure to back up your files or test on a sample folder before running on important data.
  • This script only organizes files in the specified directory, not subdirectories.

About

A simple Python script that organizes files in a directory into folders by extension. Useful for automation, productivity, and desktop cleanup tasks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages