func getAttr(fs fuse.FileSystem, name string) *attrResponse { a, code := fs.GetAttr(name, nil) return &attrResponse{ Attr: a, Status: code, } }
func IsDir(fs fuse.FileSystem, name string) bool { a, code := fs.GetAttr(name, nil) return code.Ok() && a.IsDir() }