MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / normalizeAuthPath

Method normalizeAuthPath

internal/watcher/events.go:159–170  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

157}
158
159func (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
172func (w *Watcher) shouldDebounceRemove(normalizedPath string, now time.Time) bool {
173 if normalizedPath == "" {

Calls

no outgoing calls