()
return output
Get the name and metadata of every saved profile in the data folder.
    Some of the metadata may not exist in older files.
Get the name and metadata of every saved profile in the data folder.
    Some of the metadata may not exist in older files.
Get the name and metadata of every saved profile in the data folder . Some of the metadata may not exist in older files .
def get_data_files():
    """Get the name and metadata of every saved profile in the data folder.
    Some of the metadata may not exist in older files.
    """
    all_files = list_directory(DATA_FOLDER, force_extension=DATA_EXTENSION, remove_extensions=True)
    if all_files is None:
        return []
    output = {}
    for f in all_files:
        metadata = get_metadata(f)
        output[f.replace(DATA_EXTENSION, '')] = metadata
    return output
def get_data_files ( ) : all_files = list_directory ( DATA_FOLDER , force_extension = DATA_EXTENSION , remove_extensions = True ) if all_files is None : return [ ] output = { } for f in all_files : metadata = get_metadata ( f ) output [ f . replace ( DATA_EXTENSION , '' ) ] = metadata return output