diff --git a/cmd/os-readdir_other.go b/cmd/os-readdir_other.go index 4e31ff3b1..6429627b3 100644 --- a/cmd/os-readdir_other.go +++ b/cmd/os-readdir_other.go @@ -96,7 +96,7 @@ func readDirWithOpts(dirPath string, opts readDirOpts) (entries []string, err er maxEntries := 1000 if opts.count > 0 && opts.count < maxEntries { - maxEntries = count + maxEntries = opts.count } done := false