FILEGUARD
STORAGE MANAGER.
A disaster-recovery-grade Windows duplicate detector and storage analyzer pairing 3-stage cryptographic SHA-256 pruning with 64-bit dHash perceptual image comparison, an explainable Retained-Copy Selection Advisor, and 100% reversible UUID quarantine with Ctrl+Z undo.
RECLAIM DISK SPACE WITHOUT DESTRUCTIVE BLACK-BOX DELETION.
Naive cleaners freeze RAM on multi-GB files or permanently erase last surviving copies. FileGuard streams chunked hashes, guards protected system folders, and keeps at least one master copy locked.
3-Stage Pruning Funnel
Stage 1 exact size clustering -> Stage 2 4KB fast pre-hash -> Stage 3 streaming 64KB SHA-256 content digests.
64-Bit dHash Photo Similarity
Detects resized, re-saved, or cropped near-duplicate photos via grayscale difference hashes and Hamming distance.
Retained-Copy Safety Block
Explainable Selection Advisor marks oldest/shallowest/cleanest master copy and physically blocks deleting 100% of a cluster.
Reversible UUID Quarantine
Moves redundant copies into an isolated UUID vault with manifest metadata; press Ctrl+Z for 1-click conflict-safe restoration.
Protected OS Path Guards
Blocks destructive scans or quarantines inside C:\Windows, Program Files, and core system hierarchies.
Non-Double-Counting Analyzer
Accurate directory tree size attribution avoiding nested child-folder double-counting while logging storage trends in SQLite WAL.
HOW IT WORKS.
Worker threads stream 3-stage hashes and dHash signatures into WAL SQLite while enforcing Retained-Copy & OS guard invariants.
Protected Guard
Block OS paths & index folder sizes.
Stage 1 & 2
Exact size cluster -> 4KB quick pre-hash.
Stage 3 / dHash
64KB SHA-256 + 64-bit Hamming match.
Advisor Lock
Pin master Retained Copy per cluster.
UUID Vault
Reversible quarantine + Ctrl+Z restore.
APPLICATION SCREENSHOTS.
Live screens captured from the running application. Click any image to view full size, or follow setup instructions in the GitHub repository.
SAFETY INVARIANTS & HASHING PERFORMANCE.
Key modules, rules, safety checks, and automated test results documented in the repository.
| Safety / Hashing Control | Implementation | Guarantee |
|---|---|---|
| 3-Stage Pruning | Byte Size -> 4 KB Pre-Hash -> 64 KB SHA-256 | Zero whole-file RAM spikes |
| Perceptual Photos | 64-bit grayscale dHash + Hamming cutoff | Catches resized/recompressed clones |
| Retained-Copy Rule | Hard UI + backend check per cluster | Cannot erase every copy accidentally |
| Recovery & Pytest | UUID quarantine manifest + Ctrl+Z + SQLite | 38 / 38 Passed (100%) |
CORE TECHNOLOGIES.
Frameworks, databases, visualization tools, and testing libraries used in FileGuard.
FUTURE ENHANCEMENTS.
Upcoming improvements planned for FileGuard.
EXPLORE SOURCE & DOCS.
View the complete codebase, sample datasets, quick-launch scripts, and automated test suites on GitHub.