Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add folders into an iOS application documents directory?

How do I add folders into an iOS app documents directory? thanks

like image 992
Ahmad Kayyali Avatar asked Dec 13 '22 13:12

Ahmad Kayyali


1 Answers

Most file operations are done via the NSFileManager class. To create a new directory use this method:

-[NSFileManager createDirectoryAtPath:withIntermediateDirectories:attributes:error:]

Apple documentation here: Apple reference docs -createDirectoryAtPath

like image 163
memmons Avatar answered Dec 28 '22 06:12

memmons