mirror of
https://github.com/JaCoB1123/dupe-finder.git
synced 2026-04-23 20:12:02 +02:00
do not pass erred files on
This commit is contained in:
+1
-1
@@ -48,13 +48,13 @@ func (fm *FilesMap) FileHashingWorker(wg *sync.WaitGroup) {
|
||||
|
||||
hash, err := calculateFileHash(file.path)
|
||||
fm.fileHashingBar.IncrInt64(file.size)
|
||||
fm.FilesHashed <- file
|
||||
if err != nil {
|
||||
fmt.Fprintf(fm.progress, "Error calculating Hash for file %s: %v\n", file.path, err)
|
||||
continue
|
||||
}
|
||||
|
||||
file.hash = hash
|
||||
fm.FilesHashed <- file
|
||||
}
|
||||
wg.Done()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user