From 6fa8295ac5cd271f25f431611c25944bed416120 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 18 Feb 2025 21:57:53 +0900 Subject: walker: Append path separator to directories Close #4255 --- src/reader.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/reader.go b/src/reader.go index d78f10ff..679cb636 100644 --- a/src/reader.go +++ b/src/reader.go @@ -320,6 +320,7 @@ func (r *Reader) readFiles(roots []string, opts walkerOpts, ignores []string) bo return filepath.SkipDir } } + path += sep } if ((opts.file && !isDir) || (opts.dir && isDir)) && r.pusher(stringBytes(path)) { atomic.StoreInt32(&r.event, int32(EvtReadNew)) -- cgit v1.2.3