Commit d7202e8f authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Add tree attribute to FileTreeQuery for convenience

parent f78690dd
......@@ -149,6 +149,7 @@ class FileTreeQuery(object):
tarr[tuple(idx)] = match
self.__tree = tree
self.__allvars = allvars
self.__templatevars = templatevars
self.__matches = matches
......@@ -179,6 +180,14 @@ class FileTreeQuery(object):
return {var : list(self.__allvars[var]) for var in varnames}
def tree(self):
"""Returns the :class:`.FileTree` associated with this
return self.__tree
def templates(self) -> List[str]:
"""Returns a list containing all templates of the ``FileTree`` that
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment