code: def findNestedDirectories(self, lst):
          '''
          Recursive helper function for finding nested directories.  If this node is a
          directory node, it is appended to ``lst``.  Each node also calls each of its
          child ``findNestedDirectories`` with the same list.
  
          :Parameters:
              ``lst`` (list)
                  The list each directory node is to be appended to.
          '''
          if self.kind == "dir":
              lst.append(self)
          for c in self.children:
              c.findNestedDirectories(lstf findNestedDirectories(self, lst):
          '''
          Recursive helper function for finding nested directories.  If this node is a
          directory node, it is appended to ``lst``.  Each node also calls each of its
          child ``findNestedDirectories`` with the same list.
  
          :Parameters:
              ``lst`` (list)
                  The list each directory node is to be appended to.
          '''
          if self.kind == "dir":
              lst.append(self)
          for c in self.children:
              c.findNestedDirectories(lst)
docs: Recursive helper function for finding nested directories.  If this node is a
          directory node, it is appended to ``lst``.  Each node also calls each of its
          child ``findNestedDirectories`` with the same list.
  
          :Parameters:
              ``lst`` (list)
                  The list each directory node is to be appended to.