(path string)
| 261 | } |
| 262 | |
| 263 | func (d *naiveNotify) add(path string) error { |
| 264 | err := d.watcher.Add(path) |
| 265 | if err != nil { |
| 266 | return err |
| 267 | } |
| 268 | d.numWatches++ |
| 269 | numberOfWatches.Add(1) |
| 270 | return nil |
| 271 | } |
| 272 | |
| 273 | func newWatcher(paths []string) (Notify, error) { |
| 274 | fsw, err := fsnotify.NewWatcher() |
no test coverage detected