config/module: only return SkipDir if it is dot-prefixed
This commit is contained in:
parent
f35ebe7032
commit
5c2182e316
|
@ -26,7 +26,11 @@ func copyDir(dst, src string) error {
|
|||
basePath := filepath.Base(path)
|
||||
if strings.HasPrefix(basePath, ".") {
|
||||
// Skip any dot files
|
||||
return filepath.SkipDir
|
||||
if info.IsDir() {
|
||||
return filepath.SkipDir
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
dstPath := filepath.Join(dst, basePath)
|
||||
|
|
Loading…
Reference in New Issue