def METHOD_NAME(self, directory):
    """Add a directory to the lookup and recreate it if it's not there yet."""
    if directory not in self.directories:
        self.directories.append(directory)
        self.create_lookup()