AnthonyMDev / AmazonS3RequestManager

A request manager that uses Alamofire to serialize requests to the AWS S3 (Amazon Simple Storage Solution). Based on AFAmazonS3Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update `download` example in Readme

phlippieb opened this issue · comments

The Readme provides the following example for saving objects to file:

let destination: NSURL = FileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask)[0]
amazonS3Manager.download(at: "myFolder/fileName.jpg", to: destination)

This code doesn't compile in Swift 3. The file manager API is outdated, and it seems that the download method does not accept an NSURL as its to: parameter. Please update with a working example.

Been using this library for a while and really like it. Migrating to Swift 3 is just a PITA in general. Cheers!

Thanks for the kind words and the heads up! I
l'll get to this soon.

commented

Any update on this issue?

This has been fixed. The README will now show the correct way to download files using the latest version of Alamofire.

@AnthonyMDev Awesome! Thanks!