Skip to content

Commit

Permalink
Ignore .
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Feb 3, 2020
1 parent b59e4d8 commit bd7f1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reader.go
Expand Up @@ -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)) {
Expand Down

0 comments on commit bd7f1dc

Please sign in to comment.