title: FileManager fileExists() always returns false (iOS 10, swift 3)
body: <p>My App has to download user profile images from some web URLs.
  Therefore, I'm creating an &quot;images&quot; folder in the user's &quot;Documents&quot; folder.
  Creating the folder works fine, also downloading and moving images to this folder.</p>
  <p>Before creating I check whether the &quot;images&quot; folder exists.</p>
  <pre><code>    var isDirectory: ObjCBool = ObjCBool.init(false)
      fileManager.fileExists(atPath: imageFolder.absoluteString, isDirectory: &amp;isDirectory)
      if !isDirectory.boolValue { // directory does not exist
          do {
              try fileManager.createDirectory(at: imageFolder, withIntermediateDirectories: true, attributes: nil)
              self.imageFolder = imageFolder
              print(&quot;Created image folder.&quot;)
          } catch let error {
              print(error.localizedDescription)
          }
      }
  </code></pre>
  <p>On every app startup <code>fileExists()</code> returns <code>false</code> although the folder exists:</p>
  <blockquote>
  <p>(lldb) po imageFolder</p>
  <p>▿ file:///Users/[...]/CoreSimulator/Devices/CE56339A-2A1A-4105-97A6-828E96ADD341/data/Containers/Data/Application/C2CC9A93-E9A4-4069-9FB5-771DDAEAA454/Documents/images/</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/wQVpT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wQVpT.png" alt="enter image description here" /></a></p>
  <p>But <code>imageFolder.checkResourceIsReachable()</code> returns <code>true</code>.</p>
  <blockquote>
  <p>(lldb) po imageFolder.checkResourceIsReachable()</p>
  <p>true</p>
  </blockquote>
  <p>The same is true for every other <code>fileExists()</code> call -&gt; always <code>false</code> although file/folder exists.</p>
  <p>Does anyone has experienced something similar?
  Any advices how to debug this error?
  FileManager bug!?</p>