class_docstr: Base Repo Manager class to create, initialize, download repos.
  
  Args:
      author (`str`):
          The author of the repo.
      repo (`str`):
          The name of the repo.
      root (`str`):
          The root url of the repo.
class_docstr_tok: ["Base","Repo","Manager","class","to","create",",","initialize",",","download","repos",".","Args",":","author","(","`","str","`",")",":","The","author","of","the","repo",".","repo","(","`","str","`",")",":","The","name","of","the","repo",".","root","(","`","str","`",")",":","The","root","url","of","the","repo","."]
docstr: 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.
docstr_tok: ["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","."]
code: 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
  
imports: import re
  import subprocess
  import sys
  import time
  from typing import Tuple, List, Union
  from shutil import rmtree
  from pathlib import Path
  from requests.exceptions import HTTPError
  from tqdm import tqdm
  from tempfile import TemporaryFile
  from concurrent.futures import ThreadPoolExecutor
  from towhee.utils.hub_utils import HubUtils
  from towhee.utils.log import engine_log
label_desc: Use image node_id 8 for calling the RepoManager obj's underlying member method code with example usage: obj.get_file_list(commit) and returns: file_list