def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def exact(self, f):
        """Returns True if f is in .files()."""
        return f in self._fileset