{"action":"opened","issue":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/831","labels_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/831/labels{/name}","comments_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/831/comments","events_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/831/events","html_url":"https://github.com/Alamofire/Alamofire/issues/831","id":109466969,"number":831,"title":"How can one possibly know when a file download is complete successfully when downloading to a custom location?","user":{"login":"nazariyg","id":6996416,"avatar_url":"https://avatars.githubusercontent.com/u/6996416?v=3","gravatar_id":"","url":"https://api.github.com/users/nazariyg","html_url":"https://github.com/nazariyg","followers_url":"https://api.github.com/users/nazariyg/followers","following_url":"https://api.github.com/users/nazariyg/following{/other_user}","gists_url":"https://api.github.com/users/nazariyg/gists{/gist_id}","starred_url":"https://api.github.com/users/nazariyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazariyg/subscriptions","organizations_url":"https://api.github.com/users/nazariyg/orgs","repos_url":"https://api.github.com/users/nazariyg/repos","events_url":"https://api.github.com/users/nazariyg/events{/privacy}","received_events_url":"https://api.github.com/users/nazariyg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-02T10:18:20Z","updated_at":"2015-10-02T10:18:20Z","closed_at":null,"body":"I'm downloading a file to a custom file path like this:\r\n\r\n    let tempFilePath = self.makeTempFilePath()\r\n    Alamofire.download(.GET, downloadURL) { temporaryURL, response in\r\n        return tempFilePath\r\n    }\r\n\r\nHow do I know when the download is complete and the success/failure status? I tried `responseData` closure but `result` parameter always appears as \"failure\". The `response.statusCode` in `responseData` should indicate the status or does 200 status code only indicate that the download started normally some time ago?\r\n"}}