Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Commit

Permalink
Change temporary file download path from '<Application_Home>/Library/…
Browse files Browse the repository at this point in the history
…Caches/' to '<Application_Home>/tmp/'
  • Loading branch information
exalted committed May 2, 2012
1 parent 1ec141e commit 57fb86e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PTDownloadManager/PTFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ - (NSOperation *)downloadWithProgressOnView:(UIView *)view
NSMutableDictionary *urls = [[[PTDownloadManager sharedManager] libraryInfo] objectForKey:kPTLibraryInfoRequestURLStringsKey];

ASIHTTPRequest *downloadOperation = [[ASIHTTPRequest alloc] initWithURL:[NSURL URLWithString:[urls objectForKey:self.name]]];
downloadOperation.temporaryFileDownloadPath = [[[[PTDownloadManager sharedManager] diskCachePath] stringByAppendingPathComponent:self.name] stringByAppendingPathExtension:@"download"];
downloadOperation.temporaryFileDownloadPath = [[NSTemporaryDirectory() stringByAppendingPathComponent:self.name] stringByAppendingPathExtension:@"download"];
downloadOperation.downloadDestinationPath = [[[PTDownloadManager sharedManager] fileDownloadPath] stringByAppendingPathComponent:self.name];
downloadOperation.allowResumeForFileDownloads = YES;
downloadOperation.shouldContinueWhenAppEntersBackground = YES;
Expand Down

0 comments on commit 57fb86e

Please sign in to comment.