func (c *Client) WriteStat(r *protocol.WriteStatRequest) (*protocol.WriteStatResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}

	if resp, ok := resp.(*protocol.WriteStatResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
// WriteStat updates the stat structure of the file.
WriteStat updates the stat structure of the file.
// WriteStat updates the stat structure of the file .
func (c *Client) WriteStat(r *protocol.WriteStatRequest) (*protocol.WriteStatResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}
	if resp, ok := resp.(*protocol.WriteStatResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
func ( c * Client ) WriteStat ( r * protocol . WriteStatRequest ) ( * protocol . WriteStatResponse , error ) { resp , err := c . send ( r ) if err != nil { return nil , err } if resp , ok := resp . ( * protocol . WriteStatResponse ) ; ok { return resp , nil } return nil , ErrInvalidResponse }
WriteStat updates the stat structure of the file.
WriteStat updates the stat structure of the file .