if (!folder.exists()) {
final IContainer parent = folder.getParent();
if (parent instanceof IFolder && !((IFolder) parent).exists()) {
createFolderHelper((IFolder) parent, monitor);
}
final CreateFolderOperation fop = new CreateFolderOperation(folder, null,
"creating folder " + folder.getName());
fop.execute(monitor, notifier);
}
}