File Lock & Duplicate Detector is a Python desktop application built with Tkinter and ttkbootstrap for scanning folders, detecting locked files, and highlighting duplicate files.
This repository contains the full source code, allowing you to customize file scanning logic, hash detection, filtering, UI styling, and context menu actions for personal, learning, or professional file management.
- 📂 Folder Scanning — Scan any folder recursively for files
- 🔒 Locked File Detection — Identify files that are undeletable or locked
- ✨ Duplicate Detection — Detect and highlight duplicate files using SHA1 hashes
- 🟢🟠🔴 Status Labels — Safe, Unknown, or Locked files displayed in color-coded tags
- ⏸ Pause / Resume / Stop — Control scanning process in real-time
- ⚡ Multi-threaded Hashing — Fast scanning with concurrent threads
- 🖥 Modern UI — Responsive interface built with ttkbootstrap and Tkinter
- 🗂 Filter Files — Filter by Safe, Locked, Unknown, or view all files
- 📋 Context Menu Actions — Copy path, open file, open folder, or delete files
- 🏷 Batch GUI Updates — Efficient treeview updates for large folders
- 🟨 Duplicate Highlighting — Duplicate files highlighted in gold without deletion
- 📊 Progress Bar — Real-time progress feedback during scanning
- Clone or download this repository:
git clone https://github.com/rogers-cyber/FileLockDuplicateDetector.git
cd FileLockDuplicateDetector
- Install required Python packages:
pip install ttkbootstrap
- Run the application:
python main.py
-
Select Folder
- Click "Select Folder" to choose the directory to scan.
-
Scan Files
- The app scans files recursively, detects locked files, calculates SHA1 hashes, and updates the tree view in real-time.
-
Pause / Resume / Stop Scan
- Pause scanning anytime with "Pause Scan"
- Resume with "Resume Scan"
- Stop entirely with "Stop Scan"
-
Highlight Duplicates
- Click "Highlight Duplicates" to mark duplicate files in gold.
-
Filtering
- Filter files by Safe, Locked, Unknown, or show all.
-
Context Menu
- Right-click any file for:
- Copy Path
- Open File
- Open Containing Folder
- Delete File
- Right-click any file for:
| Option | Description |
|---|---|
| Filter | Show all, Safe, Locked, or Unknown files |
| Pause / Resume / Stop | Control scanning in real-time |
| Duplicate Highlight | Identify and mark duplicate files |
| Hash Calculation | SHA1 hash used for duplicate detection |
| Treeview Updates | Batch updates every 50 files for efficiency |
| File Actions | Copy, Open, Delete, or Open Containing Folder |
- File Status — Safe, Locked, Unknown (color-coded)
- File Size — Displayed in MB
- SHA1 Hash — Unique hash for duplicate detection
- Duplicate Highlight — Gold background for duplicates
- Python 3.10+
- Tkinter — GUI framework (built-in with Python)
- ttkbootstrap — Modern themed widgets
- hashlib — SHA1 hash calculation
- concurrent.futures — Multi-threading
- subprocess / os / shutil — File operations
- Fully offline, desktop application
- Supports large folders efficiently with batch treeview updates
- Duplicates are only highlighted, not deleted automatically
- Compatible with Windows, macOS, and Linux for opening files/folders
File Lock & Duplicate Detector is maintained by Mate Technologies, providing a fast, safe, and easy file analysis tool for personal, educational, or professional use.
Website / Contact: https://matetools.gumroad.com
Distributed as source code.
You may use it for personal or educational projects.
Redistribution, resale, or commercial use requires explicit permission.
