From bd7f1dc85927eda2ae01936b29c9df6348cab0c6 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Mon, 3 Feb 2020 17:13:04 +0900 Subject: [PATCH] Ignore . --- src/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader.go b/src/reader.go index cf32f5c1e63..a0148fe940a 100644 --- a/src/reader.go +++ b/src/reader.go @@ -153,7 +153,7 @@ func (r *Reader) readFromStdin() bool { func (r *Reader) readFiles() bool { fn := func(path string, mode os.FileInfo) error { path = filepath.Clean(path) - if path != "." && mode.Mode().IsDir() && filepath.Base(path)[0] == '.' { + if path != "." || mode.Mode().IsDir() && filepath.Base(path)[0] == '.' { return filepath.SkipDir } if r.pusher([]byte(path)) {