Skip to content

Bookie212/python-file-organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ—‚๏ธ Python File Organizer

A simple Python automation script that organizes files in a directory by type.
It includes two versions โ€” one for copying and one for moving files.


๐Ÿ”น Version 1: file_organizer_copy.py

Organizes files by copying them into chosen destination folders.
You can specify which file types to move or skip by passing arguments.

file_organizer(r"C:\Users\user\Desktop\file organizer", None, r"C:\Users\user\Downloads\Favour")


## ๐Ÿ”น Version 2: file_organizer_move.py
Automatically organizes .jpg, .docx, .mp3, and .pdf files into folders on your Desktop.
It creates the following folders if they donโ€™t exist:
๐Ÿ“ธ image folder
๐Ÿ“„ text folder
๐ŸŽต music folder
๐Ÿ“• pdf folder

```python
file_organizer(r"C:\Users\user\Desktop\file organizer")


โš™๏ธ Tech Stack
๐Ÿ’ Language: Python 3
๐Ÿ’ Modules: os, shutil


๐Ÿ’ก What I Learned
๐Ÿ’ Navigating and automating the file system with os
๐Ÿ’ Managing and moving files safely using shutil
๐Ÿ’ Creating flexible Python functions with parameters
๐Ÿ’ Applying automation to real-world productivity tasks


๐Ÿงช How to Test

๐Ÿ’ Create a folder named file organizer on your Desktop.
๐Ÿ’ Add some sample files (.jpg, .pdf, .mp3, .docx).
๐Ÿ’ Run either script in VS Code or your terminal:
     python file_organizer_move.py
๐Ÿ’ Watch your files get automatically organized into folders ๐ŸŽ‰

๐Ÿ“ฌ Contact
๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿ’ป Bukola Hambolu
๐Ÿ“ง hambolubukola650@gmail.com
๐Ÿ”— https://www.linkedin.com/in/bukola-hambolu-71a581209/

About

A Python automation script that organizes files by type using os and shutil

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages