def flush(self):
        if self.mode not in WRITE_MODES:
            raise IOError('Bad file descriptor')
        backend.SaveFile(self.name, self._data)
flush() -> None.  Flush the internal I/O buffer.
dataset/ETHPy150Open mockfs/mockfs/mockfs/storage.py/file.flush