vsphere/internal/helper/folder/folder_helper.go
func ParentFromPath(c *govmomi.Client, p string, ft VSphereFolderType, dc *object.Datacenter) (*object.Folder, error) {
	return FromPath(c, path.Dir(p), ft, dc)
}
func ParentFromPath(c *govmomi.Client, p string, ft VSphereFolderType, dc *object.Datacenter) (*object.Folder, error) {
	return FromPath(c, path.Dir(p), ft, dc)
}
// ParentFromPath takes a relative object path (usually a folder), an
// object type, and an optional supplied datacenter, and returns the parent
// *object.Folder if it exists.
//
// The datacenter supplied in dc cannot be nil if the folder type supplied by
// ft is something else other than VSphereFolderTypeDatacenter.