sign_language_translator.utils.tree module

utility to print out directory hierarchy

Bugs:

multiple extra_line printed when parameter is True in nested calls

sign_language_translator.utils.tree.tree(cur_path: str = '.', directory_only=True, extra_line=True, ignore=['__pycache__', 'temp', '__init__.py'], regex=True) None[source]

prints out directory hierarchy

Parameters:
  • cur_path (str, optional) – the root node of tree or the starting parent directory. Defaults to “.”.

  • directory_only (bool, optional) – True means files will not be listed, only folders. Defaults to True.