(absPath, kind string)
| 296 | } |
| 297 | |
| 298 | func (w *Watcher) broadcastFolder(absPath, kind string) { |
| 299 | rel := w.relativePath(absPath) |
| 300 | if rel == "" { |
| 301 | return |
| 302 | } |
| 303 | folder, ok := vault.FolderForRelativePath(rel) |
| 304 | if !ok { |
| 305 | return |
| 306 | } |
| 307 | w.broadcast(vault.ChangeEvent{ |
| 308 | Kind: kind, |
| 309 | Path: rel, |
| 310 | Folder: folder, |
| 311 | Scope: "folder", |
| 312 | }) |
| 313 | } |
| 314 | |
| 315 | func (w *Watcher) broadcast(change vault.ChangeEvent) { |
| 316 | w.mu.Lock() |
no test coverage detected