func (c *Client) Stat(r *protocol.StatRequest) (*protocol.StatResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}

	if resp, ok := resp.(*protocol.StatResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
// Stat returns the stat structure of the file.
Stat returns the stat structure of the file.
// Stat returns the stat structure of the file .
func (c *Client) Stat(r *protocol.StatRequest) (*protocol.StatResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}
	if resp, ok := resp.(*protocol.StatResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
func ( c * Client ) Stat ( r * protocol . StatRequest ) ( * protocol . StatResponse , error ) { resp , err := c . send ( r ) if err != nil { return nil , err } if resp , ok := resp . ( * protocol . StatResponse ) ; ok { return resp , nil } return nil , ErrInvalidResponse }
Stat returns the stat structure of the file.
Stat returns the stat structure of the file .