MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / handleEvent

Method handleEvent

pkg/wconfig/filewatcher.go:145–157  ·  view source on GitHub ↗
(event fsnotify.Event)

Source from the content-addressed store, hash-verified

143}
144
145func (w *Watcher) handleEvent(event fsnotify.Event) {
146 w.mutex.Lock()
147 defer w.mutex.Unlock()
148
149 fileName := filepath.ToSlash(event.Name)
150 if event.Op == fsnotify.Chmod {
151 return
152 }
153 if !isValidSubSettingsFileName(fileName) {
154 return
155 }
156 w.handleSettingsFileEvent(event, fileName)
157}
158
159var validFileRe = regexp.MustCompile(`^[a-zA-Z0-9_@.-]+\.json$`)
160

Callers 1

StartMethod · 0.95

Calls 2

Tested by

no test coverage detected