MCPcopy
hub / github.com/docker/compose / add

Method add

pkg/watch/watcher_naive.go:263–271  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

261}
262
263func (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
273func newWatcher(paths []string) (Notify, error) {
274 fsw, err := fsnotify.NewWatcher()

Callers 3

StartMethod · 0.95
watchRecursivelyMethod · 0.95
loopMethod · 0.95

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected