As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
private FileInfo createFolder(NodeRef currentFolder, String folderName) { FileInfo fileInfo = getFileOrFolder(currentFolder, folderName); // check existence if (fileInfo == null) { try { fileInfo = this.fileFolderService.create(currentFolder, folderName, ContentModel.TYPE_FOLDER); } catch (FileExistsException e) { // Should never happen } } return fileInfo; }