(event *watcher.Event)
| 114 | } |
| 115 | |
| 116 | func 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 | |
| 124 | func (p *pattern) isValidPattern(fileName string) bool { |
| 125 | if fileName == "" { |