The problem
A desktop file organizer with auto-sort rules and duplicate finder is a Python desktop application that takes a cluttered folder — usually Downloads — and sorts its files into the right subfolders automatically, using rules defined once and reused. It deletes nothing and watches nothing in the background: the user picks a folder, reviews a preview of where every file will go, and only then runs the sort, with every move written to an undo log that reverses the run in one click. Downloads folders collect installers, screenshots, PDFs, photos and music, so finding one file means scrolling through hundreds, and the same photo often sits there twice under a different name. Manual tidying is slow, and cleanup tools either delete files the user still needs or demand constant attention. This organizer replaces that chore with rules — photos to Pictures, documents to Documents, spreadsheets to their own folder — plus a duplicate check that reports only, never deletes.
Builder note from the demo built for this listing: the demo ships with a sample Downloads folder of 48 files (549.3 MB) and 5 rules; the preview matches 39 files to folders and sends 9 unmatched files to a Review queue, and the duplicate check finds 3 duplicate groups holding 8.6 MB of redundant copies. Sorting that same 48-file sample folder with the rule engine took 1.42 seconds measured on this build machine, including full SHA-256 hashing of every file. Building the demo also exposed a real rule-ordering lesson: a broad rule for all PDFs placed above a narrower rule swallowed the files the narrow rule was meant to catch, so rules now run strictly in the order the user lists them and the preview shows which rule claimed each file. The fix is a first-principles one — a rule engine is only a list of tests applied in order, so the order is part of the rule, not a detail.
Picks a folder to sort, usually Downloads.
Follow the working sequence
How it works
The whole system is scan, match, preview, move and log. When the user picks a folder, the app lists every file with its name, size and type, then tests each file against the rules in the order the user listed them; the first rule that matches claims the file and names its destination folder. Files no rule matches go to a Review queue the user clears by hand. Before anything moves, the app shows the complete preview — every file, its rule and its destination — so the user can fix a rule or move a file to Review. Only after confirmation does the app move the files with the operating system's own move operation, writing every source and destination path into the undo log. The duplicate check runs as a separate pass: it hashes each file with SHA-256, groups files with identical hashes, and reports how much space the extra copies occupy.
- The user picks a folder — usually Downloads — and the app scans it, listing every file with name, size and type.
- Each file is tested against the rules in listed order; the first matching rule claims the file and names its destination folder.
- Files no rule matches are placed in a Review queue instead of being forced into a folder.
- The app shows a full preview: every file, its matched rule and its destination, for the user to check.
- After confirmation, the app moves the files with the operating system's move operation and writes every source and destination path to the SQLite undo log.
- The duplicate finder runs as a separate pass, hashing files with SHA-256 and grouping identical copies for the user to review.
Tech stack:
- Python 3 · Tkinter
- pathlib · os · shutil
- hashlib SHA-256
- SQLite undo log
- JSON rule storage
| Parameter | Value |
|---|---|
| Platform | Windows · macOS · Linux desktop, Python 3.10 or later (design target) |
| Sample folder in demo | 48 files · 549.3 MB (measured from the demo build) |
| Auto-sort rules in demo | 5 rules matching 39 of 48 files (measured from the demo build) |
| Sort time | 1.42 seconds for the 48-file sample folder (measured on the build machine) |
| Duplicate detection | SHA-256 full-file hash · 3 groups · 8.6 MB redundant (measured from the demo build) |
| Undo | Full run reversal from the SQLite undo log in 1 click (design target) |
| Rule matching | Extension · name pattern · date range (design target) |
| Preview | Every planned move listed before execution (design target) |
| File operations | Move only — no file is deleted by the sorter (design target) |
| Rule storage | JSON file holding the 5 demo rules (measured from the demo build) |
Project features
Four capabilities carry this organizer: user-defined auto-sort rules, a preview of every move before anything happens, a one-click undo log, and a duplicate finder that reports instead of deleting. The rules are the core — the user writes them once, by file type, name pattern or date, and the same five rules sort the folder the same way every time, with the first matching rule claiming each file. The preview is the safety net: before a single file moves, the app lists every planned destination, so a wrong rule is caught on screen instead of discovered in a missing folder. The undo log is the recovery: every move of a run is recorded, and one click puts all 39 files of the demo run back where they started. The duplicate finder is deliberately secondary — it hashes files, groups the identical ones and reports the wasted space, then waits for the user to decide.
- [User-defined auto-sort rules] The user writes rules by file extension, name pattern or date range, each naming its destination folder; the demo ships with 5 rules (Photos, Documents, Sheets, Music, Archives) that match 39 of 48 sample files.
- [Preview of every move] Before anything moves, the app lists every file with its matched rule and destination, so a wrong rule is caught on screen and files with no match are held in a Review queue.
- [One-click undo log] Every move of a run is written to a SQLite log with source and destination paths, and one click reverses the whole run, putting every file back where it started.
- [Secondary duplicate finder] A separate pass hashes each file with SHA-256, groups files with identical hashes, and reports how much space the extra copies occupy — it never deletes anything on its own.
- [Name-pattern and date matching] Rules can match on more than extensions: a pattern such as bank-statement-*.pdf or a date range can send a subset of files to their own folder.
- [Sort report after each run] After a run the app shows how many files moved, how many went to Review, and how much space the duplicate groups waste, so the result of the run is visible at a glance.
- [Optional scheduled background sorting] As an optional extension, the app can watch a folder and sort new files automatically on a schedule; this is not part of the base build and is developed separately on request.
What is included
- Complete Python source code (Tkinter app, rule engine, duplicate finder, undo log)
- Working HTML demo of all 3 screens (organize, rules, duplicates with undo log)
- Sample Downloads folder of 48 files with 5 rules for testing
- Project report PDF (background, methodology, architecture, limitations)
- PPT presentation for final review
- Viva Q&A preparation document (rule ordering, hashing, undo design, file operations)
- Build timeline of approximately 2–3 weeks from confirmed scope, with setup guidance after delivery
Limitations & prerequisites
- The sorter moves files only on the local machine; there is no cloud sync and no mobile version in the base build.
- The duplicate check compares full-file SHA-256 hashes, so an edited copy with even one byte changed is not flagged as a duplicate.
- The 1.42-second sort time was measured on a 48-file, 549.3 MB sample folder; a folder with 10,000 files will take longer and has not been tested in this build.
- Rules match on extension, name pattern and date only; the base build does not classify files by reading their contents.
- Undo restores only moves recorded in the run's own log; files moved or renamed by another app after the run are not tracked.
- Sorting across different drives copies instead of moving, so very large files take longer and briefly need space on both drives.
Frequently Asked Questions
How is this different from a duplicate file finder?
It is an organizer first and a duplicate finder second. The main job is auto-sort rules that move files into folders by type, name pattern or date, with a preview and a full undo log, while duplicate finding is only a helper that reports byte-identical copies and the space they waste. A duplicate finder, by contrast, exists to find and remove copies — detection and cleanup are the whole product — while this project's duplicate check never deletes anything on its own. In this build the two jobs stay separate on purpose: the sort runs on rules, the duplicate scan runs as its own pass, and the user decides what happens to each copy — keep both, or send the copy to Review.
What happens if a rule sorts a file to the wrong folder?
Nothing is lost — the undo log reverses the whole run in one click. Every move is recorded with its source and destination path, so undo puts each file back exactly where it came from, and the preview shown before the run means a wrong rule is usually caught before anything moves at all. The user can then fix the rule's pattern or its position in the list and run the preview again to check the corrected destinations.
Does the organizer delete any files?
No, it never deletes anything: the sorter only moves files, and the duplicate finder only reports copies for the user to review. The only way a file leaves the disk is if the user deletes it themselves, outside the app or after explicitly choosing to remove a duplicate copy. This is a deliberate design choice: a tool that tidies a folder people trust it with must never destroy data to save space.
Can I write my own sort rules?
Yes. Rules are written in the app's rule editor and stored as a JSON file, and each rule names the file extensions, name pattern or date range it matches plus the destination folder, and the demo ships with 5 rules covering Photos, Documents, Sheets, Music and Archives. Adding a sixth — for example, sending all .mp4 files to a Videos folder — takes one new rule, with no code change. Rules run in listed order and the first match wins, so the order is part of the rule.
Does it work without the internet?
Yes, completely: the organizer runs entirely on the local machine, and scanning, rule matching, hashing and the undo log need no network connection at all. The demo is a single HTML file that runs offline in a browser, and the desktop app has no server component. A folder can be sorted on a laptop with Wi-Fi off and the result is exactly the same.
Is this project suitable for a final-year project?
Yes — for Computer Science and Information Technology programmes. It demonstrates file-system programming, rule-engine design, hashing, SQLite logging and desktop UI development in one working application, and the rule-ordering lesson plus the measured 1.42-second sort give the viva concrete engineering decisions to discuss. The demo's sample folder of 48 files makes the behaviour easy to show live in a review.
Components & software requirements
- Python 3 · Tkinter
- pathlib · os · shutil
- hashlib SHA-256
- SQLite undo log
- JSON rule storage
Delivery information
Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.
Support terms
Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.
Download free synopsis (PDF)
Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.