MCPcopy Create free account
hub / github.com/dicej/tagger / deduplicate

Function deduplicate

server/src/sync.rs:571–673  ·  view source on GitHub ↗

Query the database for items for which we have not yet calculated a perceptual hash (e.g. files that have been newly added), calculate their p-hashes, and look for duplicates among all files which have similar p-hashes.

(
    conn: &AsyncMutex<SqliteConnection>,
    image_locks: &LockMap<Arc<str>, ()>,
    image_dir: &str,
    cache_dir: &str,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

deduplicate_dirtyFunction · 0.70
syncFunction · 0.70

Calls 3

perceptual_hashFunction · 0.85
deduplicate_dirtyFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected