( names )
return file_infos
Translate a list of GDAL filenames, into file_info objects.

    names -- list of valid GDAL dataset names.

    Returns a list of file_info objects.  There may be less file_info objects
    than names if some of the names could not be opened as GDAL files.
Translate a list of GDAL filenames, into file_info objects.
Translate a list of GDAL filenames into file_info objects .
def names_to_fileinfos( names ):
    """
    Translate a list of GDAL filenames, into file_info objects.

    names -- list of valid GDAL dataset names.

    Returns a list of file_info objects.  There may be less file_info objects
    than names if some of the names could not be opened as GDAL files.
    """

    file_infos = []
    for name in names:
        fi = file_info()
        if fi.init_from_name( name ) == 1:
            file_infos.append( fi )

    return file_infos
def names_to_fileinfos ( names ) : file_infos = [ ] for name in names : fi = file_info ( ) if fi . init_from_name ( name ) == 1 : file_infos . append ( fi ) return file_infos