diff options
author | Jakob Unterwurzacher | 2020-08-01 22:28:25 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2020-08-01 22:28:25 +0200 |
commit | 6c26cda53122df871befd0c1e08b892e0d56d31e (patch) | |
tree | c3c31f747cd695e0961ecb36d7710a759c408816 /internal/fusefrontend_reverse/node_helpers.go | |
parent | f54d21c38427e68b598546c1c870a289cb5e99bb (diff) |
v2api/reverse: implement Readdir
Diffstat (limited to 'internal/fusefrontend_reverse/node_helpers.go')
-rw-r--r-- | internal/fusefrontend_reverse/node_helpers.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/fusefrontend_reverse/node_helpers.go b/internal/fusefrontend_reverse/node_helpers.go index a26ee81..24cdbd1 100644 --- a/internal/fusefrontend_reverse/node_helpers.go +++ b/internal/fusefrontend_reverse/node_helpers.go @@ -65,3 +65,9 @@ func (n *Node) newChild(ctx context.Context, st *syscall.Stat_t, out *fuse.Entry node := &Node{} return n.NewInode(ctx, node, id) } + +// isRoot returns true if this node is the root node +func (n *Node) isRoot() bool { + rn := n.rootNode() + return &rn.Node == n +} |