'List the names of all files stored in this instance of
:class:`GridFS`.
.. versionchanged:: 3.1
``list`` no longer ensures indexes.'

def list(self):

    return [name for name in self.__files.distinct('filename') if (name is not None)]
