Do we have in Kotlin an easy way to find all inner...
# announcements
g
Do we have in Kotlin an easy way to find all inner paths of one specific folder? For example kotlinFunction(‘./folder’) outputs:
Copy code
./folder/subfolder1
./folder/subfolder2/subfolder21
j
It'd be same as in Java I'd think? Method to list all directories and recurse?
d
File("folder").walkBottomUp().filter { it.isDirectory }
👍 1
Or
walkTopDown
alternatively
👍 3
g
Hum. Very nice. Thanks a lot guys