// "/" or ".", then the parents and finally path itself).
func triggerPaths(path string) []string {
sep := string(filepath.Separator)
- if path == sep {
- return []string{path}
- } else if path == "." {
+ if path == sep || path == "." {
return []string{path}
}
parts := strings.Split(path, sep)