AnsweredAssumed Answered

How to check if a folder exists using CMIS API

Question asked by rita_aiyar on Jul 23, 2014
Latest reply on Jul 24, 2014 by niketapatel

I want to know if a folder exists in the repository but do not want to iterate through all the folders. I tried using session.GetObjectByPath method. If the folder exists in the path then it returns the ICMISObject, however if the folder does not exist then it throws an error and i have to then create the folder from the catch block. I was wondering if there was some way in which i give a path for e.g Repository/RefLibFolder/InfoTypeFolder/ContentTypeFolder then the method returns me a true or false stating that the above structure exists or not.