|
@@ -26,6 +26,7 @@ import (
|
|
|
"io"
|
|
"io"
|
|
|
"os"
|
|
"os"
|
|
|
"path/filepath"
|
|
"path/filepath"
|
|
|
|
|
+ "strings"
|
|
|
"text/template"
|
|
"text/template"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -65,6 +66,11 @@ func walkerFor(basePath string) filepath.WalkFunc {
|
|
|
return err
|
|
return err
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if strings.HasPrefix(filepath.Base(name), ".") {
|
|
|
|
|
+ // Skip dotfiles
|
|
|
|
|
+ return nil
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if info.Mode().IsRegular() {
|
|
if info.Mode().IsRegular() {
|
|
|
fd, err := os.Open(name)
|
|
fd, err := os.Open(name)
|
|
|
if err != nil {
|
|
if err != nil {
|