vsphere/internal/helper/datastore/datastore_helper.go
func SearchDatastore(ds *object.Datastore, name string) ([]*types.FileInfo, error) {
	result, err := searchDatastore(ds, name)
	if err != nil {
		return nil, err
	}
	var files []*types.FileInfo
	for _, bfi := range result.File {
		files = append(files, bfi.GetFileInfo())
	}
	return files, nil
}
func SearchDatastore(ds *object.Datastore, name string) ([]*types.FileInfo, error) {
	result, err := searchDatastore(ds, name)
	if err != nil {
		return nil, err
	}
	var files []*types.FileInfo
	for _, bfi := range result.File {
		files = append(files, bfi.GetFileInfo())
	}
	return files, nil
}
func SearchDatastore ( ds * object . Datastore , name string ) ( [ ] * types . FileInfo , error ) { result , err := searchDatastore ( ds , name ) if err != nil { return nil , err } var files [ ] * types . FileInfo for _ , bfi := range result . File { files = append ( files , bfi . GetFileInfo ( ) ) } return files , nil }
// SearchDatastore searches a datastore using the supplied HostDatastoreBrowser
// and a supplied path. The current implementation only returns the basic
// information, so all FileQueryFlags set, but not any flags for specific types
// of files.
SearchDatastore searches a datastore using the supplied HostDatastoreBrowser and a supplied path . The current implementation only returns the basic information so all FileQueryFlags set but not any flags for specific types of files .