1
0
Fork 0
mirror of https://github.com/vbatts/dedupe-linker.git synced 2024-12-28 01:26:33 +00:00
This commit is contained in:
Vincent Batts 2014-10-14 17:07:13 -04:00
parent a023c98cd1
commit e6cc87db96
2 changed files with 2 additions and 1 deletions

View file

@ -68,6 +68,7 @@ func hashFile(path string, hash crypto.Hash, info os.FileInfo) *FileHashInfo {
}
if _, err = io.Copy(h, fh); err != nil {
fhi.Err = err
fh.Close()
return &fhi
}
fh.Close()

View file

@ -54,7 +54,7 @@ func main() {
for fi := range infos {
if fi.Err != nil {
log.Println(fi.Err)
done <- struct{}{}
//done <- struct{}{}
}
if *flNoop {
fmt.Printf("%s [%d] %s\n", fi.Hash, fi.Size, fi.Path)