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)