title: How is it possible to create directories inside your application directory in iOS?
body: <p>I've tried to create a directory inside my app's directory and got the following error:</p>
  <blockquote>
  <p>Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=513 &quot;You don’t have permission to save the file “Some” in the folder “97391D11-283C-49FA-9A2B-8F8E2BBD89EE”.&quot; UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/97391D11-283C-49FA-9A2B-8F8E2BBD89EE/Some/, NSUnderlyingError=0x2819c2df0 {Error Domain=NSPOSIXErrorDomain Code=1 &quot;Operation not permitted&quot;}}: file VocalTraineriOS/VocalTrainerApp.swift, line 37</p>
  </blockquote>
  <p>Here is my code:</p>
  <pre><code>try! FileManager.default.createDirectory(atPath: NSHomeDirectory() + &quot;/Some/&quot;, withIntermediateDirectories: true)
  </code></pre>