12 lines
203 B
Go
12 lines
203 B
Go
|
package cwhub
|
||
|
|
||
|
import (
|
||
|
"path/filepath"
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
func hasPathSuffix(hubpath string, remotePath string) bool {
|
||
|
newPath := filepath.ToSlash(hubpath)
|
||
|
return strings.HasSuffix(newPath, remotePath)
|
||
|
}
|