-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files fail to save when using directory #18
Comments
Having the same problem here too. |
anyone managed to fix that ? |
i fixed it, the guy who owns the repo dont accepts pull requests but here is the solution: in DownloadManager.m go to Line 230 and exchange it with that:
if you provide a path like that -> it works return [NSHomeDirectory() stringByAppendingString:@"/Library/Private Documents"]; enjoy ;) |
I'm sorry, I haven't been very active on this repo lately, but of course I accept pull requests! Please make one and I'll merge it. |
It looks like the download manager does not attempt to create the directory if it doesn't exist. I'm not sure if that is the download managers problem though... |
At moment in my case it works. |
Yes, the download manager doesn't create the directory if it doesn't exist. :-( |
@chasseurmic please update the repo with the code that @dasoli has put in. Because I did also suffered the same problem, but as soon I put in the dasoli's code, It worked fine. Thanks |
not working to me |
Everything seems to work when I save my files using
-downloadFileForURL:progressBlock:completionBlock
but I get all kinds of errors when I use-downloadFileForURL:inDirectoryNamed:progressBlock:completionBlock
The errors suggest that the files are not found in the temp directory when it tries to move them. Am I missing something?
2015-04-28 14:41:38.285 eOS[82373:16395045] ERROR: Error Domain=NSCocoaErrorDomain Code=4 "The operation couldn’t be completed. (Cocoa error 4.)" UserInfo=0x7fd07bd78320 {NSSourceFilePathErrorKey=/Users/Bill/Library/Developer/CoreSimulator/Devices/BA0758EE-3FB8-4908-B01A-3AA21B9D3361/data/Containers/Data/Application/682F7271-FA07-4303-9FA5-EFA4551FE725/Library/Caches/com.apple.nsurlsessiond/Downloads/com.redacted.ios/CFNetworkDownload_mjVG6F.tmp, NSUserStringVariant=(
Move
), NSDestinationFilePath=/Users/Bill/Library/Developer/CoreSimulator/Devices/BA0758EE-3FB8-4908-B01A-3AA21B9D3361/data/Containers/Data/Application/682F7271-FA07-4303-9FA5-EFA4551FE725/Library/Caches/schedules/IPAT_startscreen_02.pdf, NSFilePath=/Users/Bill/Library/Developer/CoreSimulator/Devices/BA0758EE-3FB8-4908-B01A-3AA21B9D3361/data/Containers/Data/Application/682F7271-FA07-4303-9FA5-EFA4551FE725/Library/Caches/com.apple.nsurlsessiond/Downloads/com.redacted.ios/CFNetworkDownload_mjVG6F.tmp, NSUnderlyingError=0x7fd07bd3b3e0 "The operation couldn’t be completed. No such file or directory"}
The text was updated successfully, but these errors were encountered: