Exemplo n.º 1
0
// Rename renames the file for a fid.
func (clnt *Clnt) Rename(fid *Fid, name string) error {
	d := ninep.NewWstatDir()
	d.Name = name
	return clnt.Wstat(fid, d)
}
Exemplo n.º 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, ninep.NewWstatDir())
}