Skip to content

Commit 4bf73c7

Browse files
authored
Merge pull request #3413 from sven42/fix/ignored-params-in-Files.walk
Fix ignored parameters in deprecated Files.walk()
2 parents 1279244 + eac93ce commit 4bf73c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io/shared/src/main/scala/fs2/io/file/Files.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ sealed trait Files[F[_]] extends FilesPlatform[F] {
391391
*/
392392
@deprecated("Use walk(start, WalkOptions.Default.withMaxDepth(..).withFollowLinks(..))", "3.10")
393393
def walk(start: Path, maxDepth: Int, followLinks: Boolean): Stream[F, Path] =
394-
walk(start, WalkOptions.Default)
394+
walk(start, WalkOptions.Default.withMaxDepth(maxDepth).withFollowLinks(followLinks))
395395

396396
/** Like `walk` but returns a `PathInfo`, which provides both the `Path` and `BasicFileAttributes`. */
397397
def walkWithAttributes(start: Path): Stream[F, PathInfo] =

0 commit comments

Comments
 (0)