Skip to content

Commit

Permalink
Keep path as well as old path for remove event.
Browse files Browse the repository at this point in the history
  • Loading branch information
radovskyb committed Aug 17, 2019
1 parent c23a36d commit 7f55b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ func (w *Watcher) pollEvents(files map[string]os.FileInfo, evt chan Event,
select {
case <-cancel:
return
case evt <- Event{Remove, "", path, info}:
case evt <- Event{Remove, path, path, info}:
}
}
}
Expand Down

0 comments on commit 7f55b91

Please sign in to comment.