Ignore subdirs starting with a '.'
Change-Id: I67bb7c4fe02942c79973287cd3bf57627b6cdd1c
This commit is contained in:
parent
b9e87f6af2
commit
0c35b2db92
1 changed files with 2 additions and 1 deletions
|
@ -452,7 +452,8 @@ func listSubdirs(dir string) ([]string, error) {
|
|||
|
||||
var subdirs []string
|
||||
for _, info := range infos {
|
||||
if info.IsDir() {
|
||||
isDotFile := strings.HasPrefix(info.Name(), ".")
|
||||
if info.IsDir() && !isDotFile {
|
||||
subdirs = append(subdirs, info.Name())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue