MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / broadcastFolder

Method broadcastFolder

apps/server/internal/watcher/watcher.go:298–313  ·  view source on GitHub ↗
(absPath, kind string)

Source from the content-addressed store, hash-verified

296}
297
298func (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
315func (w *Watcher) broadcast(change vault.ChangeEvent) {
316 w.mu.Lock()

Callers 1

handleMethod · 0.95

Calls 2

relativePathMethod · 0.95
broadcastMethod · 0.95

Tested by

no test coverage detected