Example #1
0
// Rename renames the file for a fid.
func (clnt *Clnt) Rename(fid *Fid, name string) error {
	d := p.NewWstatDir()
	d.Name = name
	return clnt.Wstat(fid, d)
}
Example #2
0
// FSync syncs the file for a fid. It does this by sending a NewWstatDir, i.e. a
// Dir with all fields set to 'not set'.
func (clnt *Clnt) FSync(fid *Fid) error {
	return clnt.Wstat(fid, p.NewWstatDir())
}