Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Copy temp file
- NSError *error;
- BOOL exists = [fileManager fileExistsAtPath:chapterFileTemp];
- exists = [fileManager fileExistsAtPath:chapterFile];
- [fileManager copyItemAtURL:[NSURL fileURLWithPath:chapterFileTemp]
- toURL:[NSURL fileURLWithPath:chapterFile]
- error:&error];
- //Delete temp path
- [fileManager removeItemAtURL:[NSURL fileURLWithPath:chapterFileTemp] error:&error];
- - (BOOL)createDirectoryAtPath:(NSString *)path
- withIntermediateDirectories:(BOOL)createIntermediates
- attributes:(NSDictionary *)attributes
- error:(NSError **)error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement