On May 10, 2010, at 6:03 PM, Florian Müller wrote:
> That's one valid way to do it.
>
> The Folder class also has a createFolder() method. It would save you one line
> if you would use that instead of the one provided by the Session class. ;-)
Folder.createFolder takes one more argument, though: an OperationContext. I
guess I should get one from session.getDefaultContext(), right?
And one more thing: is it recommended to always call Session.save() at the end?
Ugo
--
Ugo Cei
Sourcesense - making sense of Open Source: http://www.sourcesense.com