a few words about web development

PHP class: Duplicate finder

Another straight to the point solution
This class can be used to quickly find file duplicates. It can scan subdirectories recursively and is only comparing files with the same size, which makes it really fast.

Example usage:
include 'DupFinder.php';
$d = new DupFinder;
$results = $d->scan('kat', true);
print_r($results);

Results are grouped:
Array
(
    [0] => Array
        (
            [0] => kat\duplicate1a.PNG
            [1] => kat\subdir\duplicate1b.PNG
        )

    [1] => Array
        (
            [0] => kat\duplicate2a.txt
            [1] => kat\duplicate2b.txt
        )

)

Licence: MIT (as always :) )

Comments

There are no comments yet