func (c *Client) Create(r *protocol.CreateRequest) (*protocol.CreateResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}

	if resp, ok := resp.(*protocol.CreateResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
// Create creates and opens a file according to provided parameters.
Create creates and opens a file according to provided parameters.
// Create creates and opens a file according to provided parameters .
func (c *Client) Create(r *protocol.CreateRequest) (*protocol.CreateResponse, error) {
	resp, err := c.send(r)
	if err != nil {
		return nil, err
	}
	if resp, ok := resp.(*protocol.CreateResponse); ok {
		return resp, nil
	}
	return nil, ErrInvalidResponse
}
func ( c * Client ) Create ( r * protocol . CreateRequest ) ( * protocol . CreateResponse , error ) { resp , err := c . send ( r ) if err != nil { return nil , err } if resp , ok := resp . ( * protocol . CreateResponse ) ; ok { return resp , nil } return nil , ErrInvalidResponse }
Create creates and opens a file according to provided parameters.
Create creates and opens a file according to provided parameters .