MCPcopy Index your code
hub / github.com/php/frankenphp / isValidPathType

Function isValidPathType

internal/watcher/pattern.go:116–122  ·  view source on GitHub ↗
(event *watcher.Event)

Source from the content-addressed store, hash-verified

114}
115
116func isValidPathType(event *watcher.Event) bool {
117 if event.PathType == watcher.PathTypeWatcher && globalLogger.Enabled(globalCtx, slog.LevelDebug) {
118 globalLogger.LogAttrs(globalCtx, slog.LevelDebug, "special e-dant/watcher event", slog.Any("event", event))
119 }
120
121 return event.PathType <= watcher.PathTypeHardLink
122}
123
124func (p *pattern) isValidPattern(fileName string) bool {
125 if fileName == "" {

Callers 1

allowReloadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected