aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crane.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/crane.go b/crane.go
index b678f9d..d8d0fd2 100644
--- a/crane.go
+++ b/crane.go
@@ -145,7 +145,9 @@ func (papers *Papers) getUniqueName(category string, name string) string {
func (papers *Papers) findPapersWalk(path string, info os.FileInfo,
err error) error {
// skip the papers.Path root directory
- if p, _ := filepath.Abs(path); p == papers.Path {
+ if p, _ := filepath.Abs(path); p == papers.Path ||
+ strings.HasPrefix(filepath.Base(path), ".") {
+
return nil
}