title: How to get files and directories name using Gradle?
body: <p>I have <strong>dir</strong> in which another task create files and directories so in this dir there are files, directories, subdirectroies, files in them and ect. I want to put all absolute path of <strong>files</strong> and <strong>directories</strong> in a list.</p>
  
  <pre><code>def listNames = project.fileTree('dir')
  </code></pre>
  
  <p>But only the files are included in the list, directories are missing. How to collect all of them?</p>