realize/realize/utils_unix.go

17 lines
284 B
Go
Raw Normal View History

2017-11-30 21:31:21 +00:00
// +build !windows
2017-11-30 21:26:28 +00:00
package realize
import "strings"
// isHidden check if a file or a path is hidden
func isHidden(path string) bool {
arr := strings.Split(path[len(Wdir()):], "/")
for _, elm := range arr {
if strings.HasPrefix(elm, ".") {
return true
}
}
return false
}