blob: 70ca643baef43e01c373753ded37a6d695ca3190 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package main
const rootQid = p9p.Qid{
Type: QTDIR,
Version: 0x0,
Path: 0x1,
}
// Root is the root Dir which contains /users and /sessions.
type Root struct {
path string
}
func (r Root) Qid() p9p.Qid { return rootQid }
func (r Root) Stat() (p9p.Dir, error) {
return p9p.Dir{
Qid: rootQid,
Mode: DMDIR | DMREAD,
}
|