mirror of
https://github.com/vbatts/dedupe-linker.git
synced 2024-12-28 01:26:33 +00:00
fixes
This commit is contained in:
parent
a023c98cd1
commit
e6cc87db96
2 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
2
main.go
2
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue