vsphere/internal/helper/folder/folder_helper.go
func validateNetworkFolder(folder *object.Folder) (*object.Folder, error) {
	ft, err := FindType(folder)
	if err != nil {
		return nil, err
	}
	if ft != VSphereFolderTypeNetwork {
		return nil, fmt.Errorf("%q is not a network folder", folder.InventoryPath)
	}
	return folder, nil
}
func validateNetworkFolder(folder *object.Folder) (*object.Folder, error) {
	ft, err := FindType(folder)
	if err != nil {
		return nil, err
	}
	if ft != VSphereFolderTypeNetwork {
		return nil, fmt.Errorf("%q is not a network folder", folder.InventoryPath)
	}
	return folder, nil
}
func validateNetworkFolder ( folder * object . Folder ) ( * object . Folder , error ) { ft , err := FindType ( folder ) if err != nil { return nil , err } if ft != VSphereFolderTypeNetwork { return nil , fmt . Errorf ( " " , folder . InventoryPath ) } return folder , nil }
// validateNetworkFolder checks to make sure the folder is a network folder,
// and returns it if it is, or an error if it isn't.
validateNetworkFolder checks to make sure the folder is a network folder and returns it if it is or an error if it isn t .