MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / Add

Method Add

watcher/file.go:27–29  ·  view source on GitHub ↗

Add adds a file to start watching

(filepath string)

Source from the content-addressed store, hash-verified

25
26// Add adds a file to start watching
27func (f *File) Add(filepath string) error {
28 return f.watcher.Add(filepath)
29}
30
31// Shutdown stop the file watching run loop
32func (f *File) Shutdown() {

Callers 1

TestFileChangedFunction · 0.95

Calls 1

AddMethod · 0.65

Tested by 1

TestFileChangedFunction · 0.76