func (tag *Tag) Remove(fid *Fid) error { req := tag.reqAlloc() req.fid = fid err := go9p.PackTremove(req.Tc, fid.Fid) if err != nil { return err } return tag.clnt.Rpcnb(req) }
// Removes the file associated with the Fid. Returns nil if the // operation is successful. func (clnt *Clnt) Remove(fid *Fid) error { tc := clnt.NewFcall() err := go9p.PackTremove(tc, fid.Fid) if err != nil { return err } _, err = clnt.Rpc(tc) clnt.fidpool.putId(fid.Fid) fid.Fid = go9p.NOFID return err }