def list_folders(self, **kwargs):
warnings.warn(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>",<EOL>DeprecationWarning<EOL>)<EOL>return self.get_folders(**kwargs)<EOL>
Returns the paginated list of all folders for the given course. This will be returned as a
flat list containing all subfolders as well.

.. warning::
    .. deprecated:: 0.10.0
        Use :func:`canvasapi.course.Course.get_folders` instead.

:calls: `GET /api/v1/courses/:course_id/folders \
<https://canvas.instructure.com/doc/api/files.html#method.folders.list_all_folders>`_

:rtype: :class:`canvasapi.paginated_list.PaginatedList` of
    :class:`canvasapi.folder.Folder`