草庐IT

chapterFileTemp

全部标签

ios - 尝试复制文件时出错

我正在尝试使用NSFileManager将临时文件复制到另一个位置。但是它失败了,并提示其中一个文件不存在。//CopytempfileNSError*error;BOOLexists=[fileManagerfileExistsAtPath:chapterFileTemp];exists=[fileManagerfileExistsAtPath:chapterFile];[fileManagercopyItemAtURL:[NSURLfileURLWithPath:chapterFileTemp]toURL:[NSURLfileURLWithPath:chapterFile]erro