'Iterate over the non-deleted file entries in the repository path'

def iter_dirs(self, include_root=True):

    if include_root:
        (yield self.path)
    for (item, kind) in self.entries:
        if (kind.lower() == 'dir'):
            (yield item)
