#NEWLINE# def list( self ) : #NEWLINE# #INDENT# 'List the names of all files stored in this instance of\n        :class:`GridFS`.\n\n        An index on ``{filename: 1, uploadDate: -1}`` will\n        automatically be created when this method is called the first\n        time.\n\n        .. versionchanged:: 2.7\n           ``list`` ensures an index, the same as ``get_version``.\n\n        .. versionchanged:: 1.6\n           Removed the `collection` argument.\n        ' #NEWLINE# self . __ensure_index_filename ( ) #NEWLINE# return [ name for name in self . __files . distinct ( 'filename' ) if ( name is not None ) ]