codebox: Directory utilities

Directory utility tools

codebox.dir_tools.list_files(path: str, recursive: bool = False) Iterator[str][source]

List of the absolute path of all files within a folder.

Parameters
  • path (str) – The folder to be scanned for files.

  • recursive (bool, optional) – Defaults to False. Whether to include all subdirectories.

Yields

str – The next file’s absolute path within the folder