def METHOD_NAME(cls, request, application_instance):
    """Get Canvas files config."""
    files_enabled = application_instance.settings.get("canvas", "files_enabled")
    course_id = request.lti_params.get("custom_canvas_course_id")
    config = {
        "enabled": files_enabled,
        "foldersEnabled": application_instance.settings.get(
            "canvas", "folders_enabled"
        ),
        "listFiles": {
            "authUrl": request.route_url(Canvas.route.oauth2_authorize),
            "path": request.route_path(
                "canvas_api.courses.files.list", course_id=course_id
            ),
        },
    }
    return config