    def get_file_list(self, commit: str) -> List[str]:
        """
        Get all the files in the current repo at the given commit.

        This is done through forming a git tree recursively and filtering out all the files.

        Args:
            commit (`str`):
                The commit to base current existing files.

        Returns:
            (`List[str]`)
                The file paths for the repo

        Raises:
            (`HTTPError`)
                Raise error in request.
        """
        file_list = []
        res = self.hub_utils.get_tree(commit)

        # Check each object in the tree
        for file in res.json()['tree']:
            # Ignore directories (they have the type 'tree')
            if file['type'] != 'tree':
                file_list.append(file['path'])
        return file_list
Get all the files in the current repo at the given commit.

This is done through forming a git tree recursively and filtering out all the files.

Args:
commit (`str`):
The commit to base current existing files.

Returns:
(`List[str]`)
The file paths for the repo

Raises:
(`HTTPError`)
Raise error in request.
towhee/hub/repo_manager.py