Duplicate File Detector
Detects duplicate files by comparing their content hashes
LLA Duplicate File Detector Plugin
Find duplicate files by content hash.
Features
- SHA-256 hashing with caching
- Tracks originals and duplicates
- Color-coded status
- Chunk-based performance
Configuration
Located at ~/.config/lla/duplicate_file_detector/config.toml
:
[colors]
duplicate = "bright_red" # Duplicate file indicator
has_duplicates = "bright_yellow"# Original file with duplicates
path = "bright_cyan" # File path display
success = "bright_green" # Success messages
info = "bright_blue" # Information messages
name = "bright_yellow" # Name highlighting
Usage
# Clear the detection cache
lla plugin --name duplicate_file_detector --action clear-cache
# View help information
lla plugin --name duplicate_file_detector --action help
Display Formats
Default Format
file.txt
Status: DUPLICATE of /path/to/original.txt
other.txt
Status: HAS DUPLICATES: /path/to/copy1.txt, /path/to/copy2.txt
Long Format
file.txt
Status: DUPLICATE
Original File: /path/to/original.txt
other.txt
Status: HAS DUPLICATES
Duplicate Copies: /path/to/copy1.txt
/path/to/copy2.txt
Technical Details
- SHA-256 with 8KB chunks
- Cache with invalidation
- Thread-safe
- Color-coded indicators