blob: c7e3c2471eb81e235f4f3ec8df341ce2312845b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package scanner
import "strings"
// shouldSkipDir reports whether a directory should be skipped.
func shouldSkipDir(name string) bool {
return strings.HasPrefix(name, ".") && name != "."
}
// shouldSkipFile reports whether a file should be skipped.
func shouldSkipFile(name string) bool {
return strings.HasPrefix(name, ".")
}
|