func (sfs *NopSrv) Stat(req *go9p.SrvReq) { fid := req.Fid.Aux.(Dispatcher) if sfs.Debuglevel > 0 { log.Printf("stat %s", fid) } req.RespondRstat(Fstat(fid)) }
func (fs *fileSystem) Stat(req *go9p.SrvReq) { aux := req.Fid.Aux.(*Aux) if err := aux.stat(); err != nil { req.RespondError(err) return } st, err := new9pDir(aux.path, aux.st, req.Conn.Dotu, req.Conn.Srv.Upool) if st == nil { req.RespondError(err) return } req.RespondRstat(st) }