func (clnt *Clnt) Rename(fid *Fid, name string) error {
	d := p.NewWstatDir()
	d.Name = name
	return clnt.Wstat(fid, d)
}
Rename renames the file for a fid.
package clnt
import "github.com/lionkov/go9p/p"
func (clnt *Clnt) Stat(fid *Fid) (*p.Dir, error) {
	tc := clnt.NewFcall()
	err := p.PackTstat(tc, fid.Fid)
	if err != nil {
		return nil, err
	}
	rc, err := clnt.Rpc(tc)
	if err != nil {
		return nil, err
	}
	return &rc.Dir, nil
}
func (clnt *Clnt) FStat(path string) (*p.Dir, error) {
	fid, err := clnt.FWalk(path)
	if err != nil {
		return nil, err
	}
	d, err := clnt.Stat(fid)
	clnt.Clunk(fid)
	return d, err
}
func (clnt *Clnt) Wstat(fid *Fid, dir *p.Dir) error {
	tc := clnt.NewFcall()
	err := p.PackTwstat(tc, fid.Fid, dir, clnt.Dotu)
	if err != nil {
		return err
	}
	_, err = clnt.Rpc(tc)
	return err
}
func (clnt *Clnt) FSync(fid *Fid) error {
	return clnt.Wstat(fid, p.NewWstatDir())
}