func (f file) Sync(ctx context.Context) error {
	newSessionID, err := f.fs.c.sendSession(ctx, f.sessionID, nil, &sync.Request{Handle: f.handle})
	if err != nil {
		return err
	}
	f.sessionID = newSessionID
	return nil
}
// Sync commits all pending writes to an open file.
Sync commits all pending writes to an open file.
// Sync commits all pending writes to an open file .
func (f file) Sync(ctx context.Context) error {
	newSessionID, err := f.fs.c.sendSession(ctx, f.sessionID, nil, &sync.Request{Handle: f.handle})
	if err != nil {
		return err
	}
	f.sessionID = newSessionID
	return nil
}
func ( f file ) Sync ( ctx context . Context ) error { newSessionID , err := f . fs . c . sendSession ( ctx , f . sessionID , nil , & sync . Request { Handle : f . handle } ) if err != nil { return err } f . sessionID = newSessionID return nil }
Sync commits all pending writes to an open file.
Sync commits all pending writes to an open file .