apachesharepoint-2013cmisapache-chemistry

Create a folder subtree Apache Chemistry CMIS


So the question here is...

Assuming that Sharepoint repository and folders are provided, how would I check that every single folder exists and create folder and subfolders that do not exist.

For example: For folder path /documents/pdfs/bills/january/house/ if the foder documents exist, but the subfolders /pdfs/bulls/january/house/ do not how would I go ahead and create all those folders under documents folder?

I have to use Apache Chemistry CMIS Library to get this accomplished.


Solution

  • Since OpenCMIS 1.1 you can use one of the createPath methods. See the OpenCMIS JavaDoc.