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
}
// validateNetworkFolder checks to make sure the folder is a network folder,
// and returns it if it is, or an error if it isn't.