From eac93cefc408b82185a5d83cd6acdb633878a768 Mon Sep 17 00:00:00 2001 From: Sven Behrens Date: Sat, 23 Mar 2024 18:52:29 +0100 Subject: [PATCH] Fix ignored parameters in deprecated Files.walk() --- io/shared/src/main/scala/fs2/io/file/Files.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/shared/src/main/scala/fs2/io/file/Files.scala b/io/shared/src/main/scala/fs2/io/file/Files.scala index f8aaca72c9..ae618aba1d 100644 --- a/io/shared/src/main/scala/fs2/io/file/Files.scala +++ b/io/shared/src/main/scala/fs2/io/file/Files.scala @@ -391,7 +391,7 @@ sealed trait Files[F[_]] extends FilesPlatform[F] { */ @deprecated("Use walk(start, WalkOptions.Default.withMaxDepth(..).withFollowLinks(..))", "3.10") def walk(start: Path, maxDepth: Int, followLinks: Boolean): Stream[F, Path] = - walk(start, WalkOptions.Default) + walk(start, WalkOptions.Default.withMaxDepth(maxDepth).withFollowLinks(followLinks)) /** Like `walk` but returns a `PathInfo`, which provides both the `Path` and `BasicFileAttributes`. */ def walkWithAttributes(start: Path): Stream[F, PathInfo] =