def release(self, path, fh): try: file = self.fds.pop(fh) file.flush() except KeyError: raise FuseOSError(EBADFD)