blob: 4d79fea54e9be3e6dea1b228815be6d3172919ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package fs
import (
"strings"
)
func isPrivate(fullpath string) bool {
for _, segment := range strings.Split(fullpath, "/") {
if len(segment) > 1 && segment[0] == '.' {
return true
}
}
return false
}
|