Most file operations are performed using the NSFileManager class. To create a new directory, use this method:
-[NSFileManager createDirectoryAtPath:withIntermediateDirectories:attributes:error:]
Apple documentation here: Apple Reference Documents -createDirectoryAtPath
source share