I went through this already for Android, and I learned that to create a folder that might already exists I only need to check the exception as follows:
catch (CreateFolderErrorException err) {
if( ! (err.errorValue.isPath() && err.errorValue.getPathValue().isConflict()) )
{ /* a real error, to be handled */ }
else {/*this exception can safely be ignored*/}
Now I need to do the same thing in the Objective-C SDK for iOS. In the completion block for createFolder I get:
^(DBFILESFolderMetadata *result, DBFILESCreateFolderError *cfError, DBError *error)
What is the equivalent check using "result", "cfError", and "error"?