title: How to use File.walk in kotlin
body: <p>I’m trying to walk into folder using <code>file.walk</code> this way:</p>
  
  <pre><code>File.walk(FileWalkDirection.BOTTOM_UP).forEach()
  </code></pre>
  
  <p>The documentation says:</p>
  
  <blockquote>
    <p>enum entry BOTTOM_UP defined in kotlin.io.FileWalkDirection</p>
    
    <p>Depth-first search, directory is visited AFTER its files</p>
    
    <p>Enum constant ordinal: 1</p>
  </blockquote>
  
  <p>If I use <code>FileWalkDirection.BOTTOM_UP</code> it’s my print walk</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I want to walk for this result:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>How can I walk visiting files before directory?</p>