Guest User

Untitled

a guest
Jun 19th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. {
  2. NSString* tempDir = NSTemporaryDirectory();
  3. NSString* tempDirFolder = [tempDir stringByAppendingPathComponent:@"FinaleTempFiles"];
  4.  
  5. NSError* theError = nil;
  6.  
  7. BOOL fileOK = [[NSFileManager defaultManager] createDirectoryAtPath:tempDirFolder withIntermediateDirectories:NO attributes:nil error:&theError ];
  8. if ( !fileOK )
  9. NSLog(@"createDirectoryAtPath %@", [theError localizedDescription]);
  10. }
  11.  
  12. 2013-05-31 18:52:46.830 mdimport[43160:707] createDirectoryAtPath You don’t have permission to save the file “FinaleTempFiles” in the folder “T”.
Add Comment
Please, Sign In to add comment