title: access iPhone simulator root and home directories
body: <p>I need to find a path where iPhone simulator root <code>/</code> and home <code>~</code> directories lies. With <code>NSFileManager</code> I can print their contents, however I need to place some files there so that I could open them with my application in simulator.</p>
  
  <p>My operating system is <code>OS X 10.9.4</code> on mac-mini.</p>
  
  <p>Update:</p>
  
  <p>Basically what I need to access simulators file system and not the sand-boxed location that is relative to an app, and this is because I need to test my app with absolute paths. For example if that would be an sd card or just some other known location.</p>
  
  <p>To emphasize what I am asking for. With this code:</p>
  
  <pre><code>    NSFileManager* fileManager = [NSFileManager defaultManager];
      NSArray* rootContent = [fileManager contentsOfDirectoryAtPath:@"/" error:nil];
      NSLog (@"ROOT dir contains:");
      for (NSString* fileName in rootContent)
          NSLog (@"%@", fileName);
  </code></pre>
  
  <p>I get this output:</p>
  
  <pre><code>2014-07-18 11:08:02.893 appName[34509:60b] ROOT dir contains:
  2014-07-18 11:08:02.893 appName[34509:60b] .DocumentRevisions-V100
  2014-07-18 11:08:02.894 appName[34509:60b] .file
  2014-07-18 11:08:02.894 appName[34509:60b] .fseventsd
  2014-07-18 11:08:02.894 appName[34509:60b] .hotfiles.btree
  2014-07-18 11:08:02.894 appName[34509:60b] .PKInstallSandboxManager
  2014-07-18 11:08:02.894 appName[34509:60b] .Spotlight-V100
  2014-07-18 11:08:02.894 appName[34509:60b] .Trashes
  2014-07-18 11:08:02.895 appName[34509:60b] .vol
  2014-07-18 11:08:02.895 appName[34509:60b] Applications
  2014-07-18 11:08:02.895 appName[34509:60b] bin
  2014-07-18 11:08:02.895 appName[34509:60b] cores
  2014-07-18 11:08:02.895 appName[34509:60b] dev
  2014-07-18 11:08:02.895 appName[34509:60b] etc
  2014-07-18 11:08:02.895 appName[34509:60b] home
  2014-07-18 11:08:02.895 appName[34509:60b] Library
  2014-07-18 11:08:02.896 appName[34509:60b] mach_kernel
  2014-07-18 11:08:02.896 appName[34509:60b] net
  2014-07-18 11:08:02.896 appName[34509:60b] Network
  2014-07-18 11:08:02.896 appName[34509:60b] private
  2014-07-18 11:08:02.896 appName[34509:60b] sbin
  2014-07-18 11:08:02.896 appName[34509:60b] System
  2014-07-18 11:08:02.896 appName[34509:60b] tmp
  2014-07-18 11:08:02.897 appName[34509:60b] User Information
  2014-07-18 11:08:02.897 appName[34509:60b] Users
  2014-07-18 11:08:02.897 appName[34509:60b] usr
  2014-07-18 11:08:02.897 appName[34509:60b] var
  2014-07-18 11:08:02.897 appName[34509:60b] Volumes
  </code></pre>
  
  <p>So this is a root <code>/</code> directory content and I want to access it in my OS-X file system, if that is possible, well and if it is not possible it would be great to know if there is any other location which I could access with my application and file system with a known absolute path.</p>