title: Error: You don’t have permission to save the file in the folder
body: <p>I've successfully downloaded the file but I am unable to save the file. Because I keep getting the error(s):</p>
  <pre><code>[SSZipArchive] Error: You don’t have permission to save the file “fileName” in the folder “Folder_Name”.
  [SSZipArchive] Error: You don’t have permission to save the file “fileName” in the folder “__MACOSX”.
  </code></pre>
  <p>Any help would be appreciated!</p>
  <h2>Code</h2>
  <p><strong>Unzip file function call</strong></p>
  <pre><code> ZipManager.unzipFile(atPath: filePath, delegate: self)
  </code></pre>
  <p><strong>ZipManager.swift</strong></p>
  <pre><code>private static let documentsURL: URL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0]
  
  static func unzipFile(atPath path: String, delegate: SSZipArchiveDelegate)
      {
          let destFolder = &quot;/Folder_Name&quot;
          let destPath = documentsURL.appendingPathComponent(destFolder, isDirectory: true)
          let destString = destPath.absoluteString
          
          if ( !FileManager.default.fileExists(atPath: destString) )
          {
              try! FileManager.default.createDirectory(at: destPath, withIntermediateDirectories: true, attributes: nil)
          }
          
          SSZipArchive.unzipFile(atPath: path, toDestination: destString, delegate: delegate)
      }
  </code></pre>