config/module: only return SkipDir if it is dot-prefixed

This commit is contained in:
Mitchell Hashimoto 2014-10-03 13:48:08 -07:00
parent f35ebe7032
commit 5c2182e316
1 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,11 @@ func copyDir(dst, src string) error {
basePath := filepath.Base(path) basePath := filepath.Base(path)
if strings.HasPrefix(basePath, ".") { if strings.HasPrefix(basePath, ".") {
// Skip any dot files // Skip any dot files
if info.IsDir() {
return filepath.SkipDir return filepath.SkipDir
} else {
return nil
}
} }
dstPath := filepath.Join(dst, basePath) dstPath := filepath.Join(dst, basePath)