Skip to content

Fast, safe, and easy Python app to detect locked files, highlight duplicates, and analyze folders with a modern Tkinter UI.

License

Notifications You must be signed in to change notification settings

rogers-cyber/FileLockDuplicateDetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

File Lock & Duplicate Detector — Python Tkinter App (Full Source Code)

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.


🌟 SCREENSHOT

File Lock & Duplicate Detector Main Interface


🌟 FEATURES

  • 📂 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

🚀 INSTALLATION

  1. Clone or download this repository:
git clone https://github.com/rogers-cyber/FileLockDuplicateDetector.git
cd FileLockDuplicateDetector
  1. Install required Python packages:
pip install ttkbootstrap
  1. Run the application:
python main.py

💡 USAGE

  1. Select Folder

    • Click "Select Folder" to choose the directory to scan.
  2. Scan Files

    • The app scans files recursively, detects locked files, calculates SHA1 hashes, and updates the tree view in real-time.
  3. Pause / Resume / Stop Scan

    • Pause scanning anytime with "Pause Scan"
    • Resume with "Resume Scan"
    • Stop entirely with "Stop Scan"
  4. Highlight Duplicates

    • Click "Highlight Duplicates" to mark duplicate files in gold.
  5. Filtering

    • Filter files by Safe, Locked, Unknown, or show all.
  6. Context Menu

    • Right-click any file for:
      • Copy Path
      • Open File
      • Open Containing Folder
      • Delete File

⚙️ CONFIGURATION OPTIONS

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

📦 OUTPUT

  • 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

📦 DEPENDENCIES

  • 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

📝 NOTES

  • 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

👤 ABOUT

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


📜 LICENSE

Distributed as source code.
You may use it for personal or educational projects.
Redistribution, resale, or commercial use requires explicit permission.

About

Fast, safe, and easy Python app to detect locked files, highlight duplicates, and analyze folders with a modern Tkinter UI.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages