Ignore subdirs starting with a '.'

Change-Id: I67bb7c4fe02942c79973287cd3bf57627b6cdd1c
This commit is contained in:
Jamie Gennis 2014-09-25 13:15:10 -07:00 committed by Colin Cross
parent b9e87f6af2
commit 0c35b2db92

View file

@ -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())
}
}