github.com/crowdsecurity/crowdsec@v1.6.1/pkg/cwhub/pathseparator_windows.go (about) 1 package cwhub 2 3 import ( 4 "path/filepath" 5 "strings" 6 ) 7 8 func hasPathSuffix(hubpath string, remotePath string) bool { 9 newPath := filepath.ToSlash(hubpath) 10 return strings.HasSuffix(newPath, remotePath) 11 }