This commit is contained in:
2013-02-11 23:17:12 -05:00
parent 54a0359897
commit 61d5532e33
6 changed files with 69 additions and 39 deletions

View File

@ -30,7 +30,9 @@ func StartWatching(watchDir string, fileUpdates chan *Event) {
event.Path = ev.Name
if event.IsUpdate() {
event.Hash, err = HashFile(ev.Name)
if err != nil { continue }
if err != nil {
continue
}
} else {
event.Hash = ""
}