code: def flush(self, file=str()):
          
          if file:
              Path(file).write_bytes(self._cache)
          else:
              self.path.write_bytes(self._cache)
docs: Flushes the updated file content to the given *file*.
  
          .. note::  Overwrites an existing file.
  
          :param str file: name and location of the file.
              Default is the original file.