title: Read all files from a directory?
body: <p>I am trying to create a folder in my assets, then get a list of files inside.
  Sounds simple but there is no clean answer on how to do exactly this.</p>
  <ol>
  <li>Even to get the list from the main directory, most people can't do on Swift 3, reading here : <a href="https://stackoverflow.com/questions/27721418/getting-list-of-files-in-documents-folder">Getting list of files in documents folder</a></li>
  </ol>
  <p>using :</p>
  <pre><code>let fileMngr = FileManager.default;
  
  // Full path to documents directory
  let docs = fileMngr.urls(for: .documentDirectory, in: .userDomainMask)[0].path
  
  // List all contents of directory and return as [String] OR nil if failed
  return try? fileMngr.contentsOfDirectory(atPath:docs)
  </code></pre>
  <p>Not working.</p>
  <ol start="2">
  <li>Reading from a specific folder, I couldn't understand how to get it's path for swift.</li>
  </ol>
  <p>Any example that really work that reads from a folder ?</p>