title: NSCachesDirectory not a directory in my file system
body: <p>I'm trying to store something in my Caches folder on my iPad app. </p>
  
  <pre><code>    NSArray* cachePathArray = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
      NSString* cachePath = [cachePathArray lastObject];
  </code></pre>
  
  <p>And when I print out the returned filepath, I get: </p>
  
  <blockquote>
    <p>/Users/Gela/Library/Application Support/iPhone
    Simulator/5.0/Applications/3FF7EB1A-49A9-4B13-ADC4-DF0662BA724B/Library/Caches</p>
  </blockquote>
  
  <p>However, when I navigate to that folder on my hard drive, "Caches" is not a folder but a vague "document" file. </p>
  
  <p>Any ideas why it's not a folder and how I can write to my Cache?</p>