torchoutil.entries module

main_safe_rmdir() None[source]
main_tree() None[source]
print_safe_rmdir(
root: str | Path,
*,
rm_root: bool = True,
error_on_non_empty_dir: bool = True,
followlinks: bool = False,
dry_run: bool = False,
verbose: int = 0,
) None[source]
print_tree(
root: str | Path,
*,
exclude: str | Pattern | Iterable[str | Pattern] = (),
max_depth: int = 9223372036854775807,
followlinks: bool = False,
) None[source]