title: Get Full File Path During Enumeration
body: <p>I'm using the following code to enumerate a user selected path and populate an array with files names with specific extensions. </p>
  
  <pre><code>let enumerator:FileManager.DirectoryEnumerator = fileManager.enumerator(atPath: path)!
  
      while let element = enumerator.nextObject() as? String {
      if ((element.hasSuffix("jpg"))||element.hasSuffix("playground")) {
      if(!self.yourArray.contains(element))
      {
      self.yourArray.append(element)
      }
      }
  </code></pre>
  
  <p>I need to get the complete file path to add the file to a processing queue.</p>
  
  <p>Also how I can prevent the enumerator from exploring sub directories.</p>
  
  <p>Please advice. </p>