code: def dump(self, directory):
      
      payload = '{}:{}'.format(self.fingerprint, self.serialized_bytes_length)
      safe_file_dump(self._path(directory), payload=payload)
docs: Dump this Digest object adjacent to the given directory.