nicetoolbox.utils.in_out.list_files_under_root

nicetoolbox.utils.in_out.list_files_under_root(root_path: str, ext: str = '') list[source]

Lists all files under a given root.

Parameters:
  • root_path (str) – The root path.

  • ext (str, optional) – Extension of the requested file type. Default is an empty string.

Returns:

If ext parameter is an empty string, lists all files under the given root.

Otherwise, lists the files with the given extension under the given root.

Return type:

list