I am trying to use `File.walk` however I am not ab...
# announcements
x
I am trying to use
File.walk
however I am not able to get it resolved. IntelliJ always shows me
java.nio.file.Files.walk
instead of the extension
Copy code
public fun File.walk(direction: FileWalkDirection = FileWalkDirection.TOP_DOWN): FileTreeWalk =
    FileTreeWalk(this, direction)
c
It should be in the normal stdlib, which is added to your project by default since 1.4
x
updated my question
Somehow it is not being resolved
However
FileTreeWalk
is resolved - that is weird somehow
app_gif_wip.gif
c
It’s called as an extension function on a
File
instance, not as a static method call.
File("some/dir").walk().forEach { }
1
x
oh
Ok thanks - my bad then