tree#

canary_addcommand(parser: Parser) None#
class Tree#

Bases: CanarySubcommand

name: str = 'tree'#
add_help: bool = False#
description: str = 'list contents of directories in a tree-like format'#
setup_parser(parser: Parser) None#
execute(args: Namespace) int#
tree(directory: str, level: int = -1, only_directories: bool = False, skip_hidden: bool = True, dont_descend=None, exclude_results: bool = False, indent='')#

Given a directory Path object print a visual tree structure