コード例 #1
0
ファイル: cachingfs.go プロジェクト: jasonmoo/go-fuse
func getAttr(fs fuse.FileSystem, name string) *attrResponse {
	a, code := fs.GetAttr(name, nil)
	return &attrResponse{
		Attr:   a,
		Status: code,
	}
}
コード例 #2
0
ファイル: unionfs.go プロジェクト: jasonmoo/go-fuse
func IsDir(fs fuse.FileSystem, name string) bool {
	a, code := fs.GetAttr(name, nil)
	return code.Ok() && a.IsDir()
}