MCPcopy Create free account
hub / github.com/cogentcore/core / unWatchPath

Method unWatchPath

filetree/tree.go:241–250  ·  view source on GitHub ↗

unWatchPath removes given path from those watched

(path core.Filename)

Source from the content-addressed store, hash-verified

239
240// unWatchPath removes given path from those watched
241func (ft *Tree) unWatchPath(path core.Filename) {
242 rp := ft.RelativePathFrom(path)
243 on, has := ft.watchedPaths[rp]
244 if !on || !has {
245 return
246 }
247 ft.configWatcher()
248 ft.watcher.Remove(string(path))
249 ft.watchedPaths[rp] = false
250}
251
252// isDirOpen returns true if given directory path is open (i.e., has been
253// opened in the view)

Callers 1

setDirClosedMethod · 0.95

Calls 2

configWatcherMethod · 0.95
RelativePathFromMethod · 0.80

Tested by

no test coverage detected