예제 #1
0
파일: testfs.go 프로젝트: rht/ipget
func (f ChildMap) Attr(ctx context.Context, a *fuse.Attr) error {
	a.Mode = os.ModeDir | 0777
	return nil
}
예제 #2
0
파일: testfs.go 프로젝트: rht/ipget
func (f File) Attr(ctx context.Context, a *fuse.Attr) error {
	a.Mode = 0666
	return nil
}
예제 #3
0
파일: hello.go 프로젝트: rht/ipget
func (Dir) Attr(ctx context.Context, a *fuse.Attr) error {
	a.Inode = 1
	a.Mode = os.ModeDir | 0555
	return nil
}
예제 #4
0
파일: hello.go 프로젝트: rht/ipget
func (File) Attr(ctx context.Context, a *fuse.Attr) error {
	a.Inode = 2
	a.Mode = 0444
	a.Size = uint64(len(greeting))
	return nil
}
예제 #5
0
파일: tree.go 프로젝트: rht/ipget
func (t *tree) Attr(ctx context.Context, a *fuse.Attr) error {
	a.Mode = os.ModeDir | 0555
	return nil
}