Check if folder exists and create it, if it doesn’t in iOS

It is interesting and quite uncommon that to check weather a folder exists, you should create a bool reference and pass it to the method fileExistsAtPath. This is a sample getter for a folderPath property, that I created. It can be used in various projects. It creates a folder in Documents folder of your app. Change amp to &.

Reference to StackOverflow

Leave a Reply

Your email address will not be published. Required fields are marked *