Skip to content

Commit

Permalink
Merge pull request #3413 from sven42/fix/ignored-params-in-Files.walk
Browse files Browse the repository at this point in the history
Fix ignored parameters in deprecated Files.walk()
  • Loading branch information
mpilquist committed Mar 24, 2024
2 parents 1279244 + eac93ce commit 4bf73c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/shared/src/main/scala/fs2/io/file/Files.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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] =
Expand Down

0 comments on commit 4bf73c7

Please sign in to comment.