mirror of
https://github.com/JaCoB1123/dupe-finder.git
synced 2025-07-04 09:38:54 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
7c95ec57d7 | |||
c72fbdd086 | |||
ce574a0b4a | |||
ceab693f34 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
*.exe
|
*.exe
|
||||||
|
test_data/
|
||||||
|
tmp/
|
||||||
|
@ -35,7 +35,7 @@ func (fm *FilesMap) getImageClusters() []imageCluster {
|
|||||||
currentCluster = append(currentCluster, similarImage{path: otherFile.path, distance: distance})
|
currentCluster = append(currentCluster, similarImage{path: otherFile.path, distance: distance})
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(currentCluster) > 1 {
|
if len(currentCluster) <= 1 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ func newFilesMap() *FilesMap {
|
|||||||
func (fm *FilesMap) FileHashingWorker(wg *sync.WaitGroup) {
|
func (fm *FilesMap) FileHashingWorker(wg *sync.WaitGroup) {
|
||||||
for file := range fm.FilesHashing {
|
for file := range fm.FilesHashing {
|
||||||
if *verbose {
|
if *verbose {
|
||||||
fmt.Println("Hashing file", file.path)
|
fmt.Fprintf(fm.progress, "Hashing file %s\n", file.path)
|
||||||
}
|
}
|
||||||
|
|
||||||
hash, err := calculateFileHash(file.path)
|
hash, err := calculateFileHash(file.path)
|
||||||
@ -63,7 +63,7 @@ func (fm *FilesMap) FileHashingWorker(wg *sync.WaitGroup) {
|
|||||||
func (fm *FilesMap) ImageHashingWorker(wg *sync.WaitGroup) {
|
func (fm *FilesMap) ImageHashingWorker(wg *sync.WaitGroup) {
|
||||||
for file := range fm.ImagesHashing {
|
for file := range fm.ImagesHashing {
|
||||||
if *verbose {
|
if *verbose {
|
||||||
fmt.Println("Hashing image", file.path)
|
fmt.Fprintf(fm.progress, "Hashing image %s\n", file.path)
|
||||||
}
|
}
|
||||||
|
|
||||||
hash, err := calculateImageHash(file.path)
|
hash, err := calculateImageHash(file.path)
|
||||||
|
Reference in New Issue
Block a user