diff --git a/src/reader.go b/src/reader.go index ecdf509c6d9..572c9c6294c 100644 --- a/src/reader.go +++ b/src/reader.go @@ -265,7 +265,7 @@ func (r *Reader) readFiles(root string, opts walkerOpts, ignores []string) bool isDir := de.IsDir() if isDir || opts.follow && isSymlinkToDir(path, de) { base := filepath.Base(path) - if !opts.hidden && base[0] == '.' { + if !opts.hidden && base[0] == '.' && base != ".." { return filepath.SkipDir } for _, ignore := range ignores {