A Python automation script that organizes your messy folders by file type and removes duplicate files using content hashing.
- β Auto-categorizes files into subfolders: Images, Documents, Videos, etc.
- β Detects duplicate files based on content (not name)
- β CLI interface β easy to use, no UI required
- β Safe: Asks before deleting duplicates
| Category | Extensions |
|---|---|
| Images | .jpg, .jpeg, .png |
| Documents | .pdf, .docx, .txt |
| Videos | .mp4, .mkv |
| Others | All other files |
- Clone or download the project:
git clone https://github.com/yourusername/FileOrganizer.git
cd FileOrganizer
2. Run the script:
bash
Copy code
python main.py
3. Enter full path of folder to organize.
4. Confirm duplicate cleanup when prompted.
π‘ Example
π Enter full path of folder to organize: C:\Users\YourName\Downloads
β
Moved: file1.jpg β Images/
β
Moved: resume.pdf β Documents/
β¨ Do you want to scan and delete duplicate files? (y/n): y
ποΈ Deleted: C:\Users\YourName\Downloads\Images\copy1.jpg
π¦ Built With
Python 3
os, shutil, hashlib modules
π§βπ» Author
Digvijay Gholase β aspiring Python developer
GitHub: github.com/jxy-cybersec