示例#1
0
文件: stat.go 项目: hugelgupf/ninep
// 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)
}
示例#2
0
文件: stat.go 项目: hugelgupf/ninep
// 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())
}