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