unWatchPath removes given path from those watched
(path core.Filename)
| 239 | |
| 240 | // unWatchPath removes given path from those watched |
| 241 | func (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) |
no test coverage detected