AnsweredAssumed Answered

FileFolderService

Question asked by nm_santos on Jun 8, 2012
Latest reply on Jun 8, 2012 by mrogers
Hi,

I'm trying to use FileFolderService to create a folder in my user_home, in a web script.

However, I don't get any errors, but the folder isn't created either.

What is wrong?


NodeRef node = new NodeRef("workspace://SpacesStore/app:company_home/app:user_homes/cm:nunoHome");

      if ( node == null )
         throw new WebScriptException("doesn't exist");

      fileFolderService.create(node, "test folder", ContentModel.TYPE_FOLDER, ContentModel.ASSOC_CONTAINS);   

Regards,
Nuno.

Outcomes