fun ensureParentFolderHierarchyExists(folder: IFolder) { val parent: IContainer = folder.getParent() if (parent is IFolder) { ensureFolderHierarchyExists(parent as IFolder) } }
Ensures the given folder 's parent hierarchy is created if they do not already exist .