【发布时间】:2011-09-28 09:04:00
【问题描述】:
我使用 ASIHTTPReqeust 下载文件。一切下载正常,但它不能将文件从临时目录移动到文档。当我实施时
-(void) request:(ASIHTTPRequest *)request didReceiveData:(NSData *)data
请求失败并出现错误。但文件已下载。
如果我删除这个实现,一切都很好,文件正在移动到文档。 这是错误文本:
Error Domain=ASIHTTPRequestErrorDomain Code=8 "Failed to move file from '/var/folders/Qu/Qu0o0VcpEY4npJr2C1yPzE+++TI/-Tmp-/Skrillex feat. Nero - Wobbleland.mp3' to '/Users/Timur/Library/Application Support/iPhone Simulator/4.3/Applications/34389282-4013-4354-95D9-DF2847B4EE55/Documents/Audio/Skrillex feat. Nero - Wobbleland.mp3'" UserInfo=0x5949520 {NSUnderlyingError=0x59992a0 "The operation couldn’t be completed. (Cocoa error 4.)", NSLocalizedDescription=Failed to move file from '/var/folders/Qu/Qu0o0VcpEY4npJr2C1yPzE+++TI/-Tmp-/Skrillex feat. Nero - Wobbleland.mp3' to '/Users/Timur/Library/Application Support/iPhone Simulator/4.3/Applications/34389282-4013-4354-95D9-DF2847B4EE55/Documents/Audio/Skrillex feat. Nero - Wobbleland.mp3'}
谁遇到过类似的问题?
【问题讨论】:
-
我遇到了类似的问题。
标签: objective-c ios ios4 filesystems asihttprequest