From 5c2182e31606f1734c0f5351856dcfd2d0167835 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 3 Oct 2014 13:48:08 -0700 Subject: [PATCH] config/module: only return SkipDir if it is dot-prefixed --- config/module/copy_dir.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/module/copy_dir.go b/config/module/copy_dir.go index 3a5f95e95..72c3dad2f 100644 --- a/config/module/copy_dir.go +++ b/config/module/copy_dir.go @@ -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)