// Rstat returns stat message for the file associated with fid
Rstat returns stat message for the file associated with fid
// Rstat returns stat message for the file associated with fid
func (fs *fileServer) Rstat(fid protocol.FID) ([]byte, error) {
	f, err := fs.getFile(fid)
	if err != nil {
		return []byte{}, err
	}
	d := plan9Dir(f)
	var b bytes.Buffer
	protocol.Marshaldir(&b, *d)
	return b.Bytes(), nil
}
func ( fs * fileServer ) Rstat ( fid protocol . FID ) ( [ ] byte , error ) { f , err := fs . getFile ( fid ) if err != nil { return [ ] byte { } , err } d := plan9Dir ( f ) var b bytes . Buffer protocol . Marshaldir ( & b , * d ) return b . Bytes ( ) , nil }
Rstat returns stat message for the file associated with fid
Rstat returns stat message for the file associated with fid