mirror of
https://github.com/JaCoB1123/dupe-finder.git
synced 2025-05-18 06:01:56 +02:00
Also list binary identical files
This commit is contained in:
parent
65ce046585
commit
f8564f20ac
16
main.go
16
main.go
@ -188,6 +188,22 @@ func main() {
|
||||
countInstances := 0
|
||||
countDupeSets := 0
|
||||
|
||||
fmt.Println("Files that are binary identical:")
|
||||
for hash := range filesMap.FilesByHash {
|
||||
duplicateFiles := filesMap.FilesByHash[hash]
|
||||
if len(duplicateFiles) <= 1 {
|
||||
continue
|
||||
}
|
||||
|
||||
countDupeSets++
|
||||
for _, file := range duplicateFiles {
|
||||
countInstances++
|
||||
fmt.Println(file)
|
||||
}
|
||||
fmt.Println()
|
||||
}
|
||||
|
||||
fmt.Println("Images that are similar:")
|
||||
for len(filesMap.Images) > 0 {
|
||||
file := filesMap.Images[0]
|
||||
filesMap.Images = slices.Delete(filesMap.Images, 0, 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user