How to use File.walk

Hey guys, I’m trying to walk into folder using file.walk this way:

File.walk(FileWalkDirection.BOTTOM_UP).forech()

The documentation says that

enum entry BOTTOM_UP defined in kotlin.io.FileWalkDirection
Depth-first search, directory is visited AFTER its files
Enum constant ordinal: 1

If I use FileWalkDirection.BOTTOM_UP it’s my print walk

emergency-support/digital/beginner/.category.yml
emergency-support/digital/.category.yml
emergency-support/physical/beginner/.category.yml
emergency-support/physical/.category.yml
emergency-support/.category.yml

I want to walk for this result:

emergency-support/.category.yml
emergency-support/physical/.category.yml
emergency-support/physical/beginner/.category.yml
emergency-support/digital/.category.yml
emergency-support/digital/beginner/.category.yml

How can I walk visiting files before directory?