finder

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package finder implements the core duplicate detection logic for the doppel file finder.

This package provides the main algorithm for finding duplicate files using a two-stage hashing approach:

  1. Quick hash: Fast partial XXH3 hashing to eliminate most non-duplicates
  2. Full hash: Complete Blake3 hashing for final duplicate confirmation

The package processes files in parallel using configurable worker goroutines and maintains statistics about the duplicate detection process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDuplicatesByHash

func FindDuplicatesByHash(ctx context.Context, sizeGroups map[int64][]scanner.FileInfo,
	numWorkers int, stats *model.Stats, verbose bool) (*model.DuplicateReport, error,
)

FindDuplicatesByHash processes files with same sizes and returns a model.DuplicateReport directly.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL