How to check if directory exists at particular path programmatically in Objective-C?
-
02-10-2019 - |
Question
Please tell me how to
Get the current working directory's absolute path
If this is the absolute path /Users/iphone/Documents/Archive
how to convert this path to relative path?
How to check if directory exists at patricular path programmatically in Objective-C and if it doesn't exist how to create it programmatically? i need to do this using relative path.
Thank You.
Solution
The main source of information is the Apple File System Programming Guide
From there or subtopics you get information for your questions.
1) NSFileManager currentDirectoryPath
3) NSFileManager fileExistsAtPath:isDirectory:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow