title: iOS: Can't get content of Caches directory
body: <p>Trying to get content of Caches directory:</p>
  
  <pre><code>NSError *error;
  NSString *path = [[self.class cachesDirectoryURL] absoluteString];
  NSArray *directoryItems = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:&amp;error];
  </code></pre>
  
  <p><code>path</code> is correct, I can see in Finder that it exists and contains my files.<br>
  <code>directoryItems</code> is <code>nil</code> and <code>error</code> is</p>
  
  <pre><code>Error Domain=NSCocoaErrorDomain Code=260 "The folder “Caches” doesn’t exist." UserInfo={NSUnderlyingError=0x7982d2d0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}, NSFilePath=file:///Users/seelts/Library/Developer/CoreSimulator/Devices/C1411C3D-91FB-4D91-83A4-D0747071AE36/data/Containers/Data/Application/800DE429-F10C-438E-BB04-2948C0B07E7C/Library/Caches/, NSUserStringVariant=(
      Folder
  )}
  </code></pre>
  
  <p>What's wrong with me?</p>