def __init__(self, root, branches=None):
        """
        Generate a tree dictionary of the contents of a root directory.
        :param root: Starting directory
        :param branches: List of function tuples used for filtering
        """
        self.tree_dict = {}
        self.directory = Path(root)
        self.start = str(self.directory).rfind(os.sep) + 1
        self.branches = branches
        self.get()
def __init__ ( self , root , branches = None ) : self . tree_dict = { } self . directory = Path ( root ) self . start = str ( self . directory ) . rfind ( os . sep ) + 1 self . branches = branches self . get ( )
Generate a tree dictionary of the contents of a root directory.
        :param root: Starting directory
        :param branches: List of function tuples used for filtering