Can you tell me how can I get the correct length or what will be the simplest way to do it?
this is my code:
NSString *strObj = @"DirectoryName";
NSData *dataObj = [strObj dataUsingEncoding:NSUnicodeStringEncoding
allowLossyConversion:NO];
FSCreateDirectoryUnicode(&aFolderFSRef, [strObj length], [dataObj bytes],
kFSCatInfoNone, NULL, &newFolderFSRef, NULL, NULL);
Tarun Kumar
13-Jan-2016NSString *strObj = @"DirectoryName";
NSString *strPath = [NSHomeDirectory() stringByAppendingPathComponent:strObj];
[[NSFileManager defaultManager] createDirectoryAtPath:strPath attributes:nil];