def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def visitdir(self, dir):
        dir = normalizerootdir(dir, "visitdir")
        return dir in self._dirs