title: Alamofire Not Downloading PDFs
body: <p>I am trying to download PDFs to the documents directory. The request is successful, but the file doesn't exist in the documents directory after the request is finished.</p>
  
  <pre><code>let destination = DownloadRequest.suggestedDownloadDestination(for: .documentDirectory)
  
  let documentsDirectory = FileManager.SearchPathDirectory.documentDirectory
  let userDomainMask = FileManager.SearchPathDomainMask.userDomainMask
  let paths = NSSearchPathForDirectoriesInDomains(documentsDirectory, userDomainMask, true)
  
  if paths.first != nil 
  {
  
      Alamofire.download("http://www.test.com/pdfs/sample.pdf", to: destination).responseData 
      { response in
          if response.result.isFailure
          {
              print("\(response.error!)")
          }
      }
  }
  </code></pre>