def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def visitdir(self, dir):
        dir = normalizerootdir(dir, "visitdir")
        return dir in self._dirs