Skip to content

Deprecated Files.walk(start: Path, maxDepth: Int, followLinks: Boolean) ignores maxDepth and followLinks #3412

@sven42

Description

@sven42

Thanks a lot for your fix of #3329

However, I found that the current implementation in v3.10.0 of the now deprecated Files.walk() ignores some of its parameters.

  def walk(start: Path, maxDepth: Int, followLinks: Boolean): Stream[F, Path] =
    walk(start, WalkOptions.Default)

should be implemented like this:

    walk(start, WalkOptions.Default.withMaxDepth(maxDepth).withFollowLinks(followLinks))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions