(path string)
| 157 | } |
| 158 | |
| 159 | func (w *Watcher) normalizeAuthPath(path string) string { |
| 160 | trimmed := strings.TrimSpace(path) |
| 161 | if trimmed == "" { |
| 162 | return "" |
| 163 | } |
| 164 | cleaned := filepath.Clean(trimmed) |
| 165 | if runtime.GOOS == "windows" { |
| 166 | cleaned = strings.TrimPrefix(cleaned, `\\?\`) |
| 167 | cleaned = strings.ToLower(cleaned) |
| 168 | } |
| 169 | return cleaned |
| 170 | } |
| 171 | |
| 172 | func (w *Watcher) shouldDebounceRemove(normalizedPath string, now time.Time) bool { |
| 173 | if normalizedPath == "" { |
no outgoing calls