Skip to content

Commit d576b77

Browse files
committed
fix(vidir): Fix file listings being duplicated when multiple paths are given
1 parent 0fb1f65 commit d576b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/vidir/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func createListing(w io.Writer, args []string, recursive bool) ([]string, error)
173173

174174
paths = append(paths, path)
175175

176-
if !recursive && d.IsDir() && !slices.Contains(args, path) {
176+
if !recursive && d.IsDir() {
177177
// Do not recurse more than 1 level
178178
return filepath.SkipDir
179179
}

0 commit comments

Comments
 (0)