(path string, subPath string)
| 39 | } |
| 40 | |
| 41 | func IsSubPath(path string, subPath string) bool { |
| 42 | path, subPath = FixAndCleanPath(path), FixAndCleanPath(subPath) |
| 43 | return path == subPath || strings.HasPrefix(subPath, PathAddSeparatorSuffix(path)) |
| 44 | } |
| 45 | |
| 46 | func Ext(path string) string { |
| 47 | ext := stdpath.Ext(path) |
no test coverage detected