def _next_index(self, s):
        self.set_index(self.index + 1)
def _roots(kindpats):
    """Returns root directories to match recursively from the given patterns."""
    roots, dirs = _patternrootsanddirs(kindpats)
    return roots