def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def exact(root, cwd, files, badfn=None):
    return exactmatcher(root, cwd, files, badfn=badfn)