def flush(self, filepath, fh): om = gdrivefs.gdfs.opened_file.get_om() try: opened_file = om.get_by_fh(fh=fh) except: _logger.exception("Could not get OpenedFile (flush).") raise FuseOSError(EIO) try: opened_file.flush() except: _logger.exception("Could not flush local updates.") raise FuseOSError(EIO)