Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. //Copy temp file
  2. NSError *error;
  3. BOOL exists = [fileManager fileExistsAtPath:chapterFileTemp];
  4. exists = [fileManager fileExistsAtPath:chapterFile];
  5.  
  6. [fileManager copyItemAtURL:[NSURL fileURLWithPath:chapterFileTemp]
  7. toURL:[NSURL fileURLWithPath:chapterFile]
  8. error:&error];
  9.  
  10. //Delete temp path
  11. [fileManager removeItemAtURL:[NSURL fileURLWithPath:chapterFileTemp] error:&error];
  12.  
  13. - (BOOL)createDirectoryAtPath:(NSString *)path
  14. withIntermediateDirectories:(BOOL)createIntermediates
  15. attributes:(NSDictionary *)attributes
  16. error:(NSError **)error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement