@cli.register_custom_action('<STR_LIT>', tuple(), ('<STR_LIT:path>', '<STR_LIT>'))<EOL><INDENT>@exc.on_http_error(exc.GitlabGetError)<EOL>def repository_tree(self, path='<STR_LIT>', ref='<STR_LIT>', recursive=False, **kwargs):<DEDENT>
gl_path = '<STR_LIT>' % self.get_id()<EOL>query_data = {'<STR_LIT>': recursive}<EOL>if path:<EOL><INDENT>query_data['<STR_LIT:path>'] = path<EOL><DEDENT>if ref:<EOL><INDENT>query_data['<STR_LIT>'] = ref<EOL><DEDENT>return self.manager.gitlab.http_list(gl_path, query_data=query_data,<EOL>**kwargs)<EOL>
Return a list of files in the repository.

        Args:
            path (str): Path of the top folder (/ by default)
            ref (str): Reference to a commit or branch
            recursive (bool): Whether to get the tree recursively
            all (bool): If True, return all the items, without pagination
            per_page (int): Number of items to retrieve per request
            page (int): ID of the page to return (starts with page 1)
            as_list (bool): If set to False and no pagination option is
                defined, return a generator instead of a list
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabGetError: If the server failed to perform the request

        Returns:
            list: The representation of the tree