Google is committed to advancing racial equity for Black communities. See how.

open method

  • @override

void open (int flags, int mode, String path, InterfaceRequest request, [int parentFlags = Flags.fsRights]) override

This function is called from fuchsia.io.Directory#open. This function parses path and opens correct node.

Vnode provides a simplified implementation for non-directory types. Behavior: For directory types, it will throw UnimplementedError error. For non empty path it will fail with ERR_NOT_DIR.

Implementation

@override
void open(int flags, int mode, String path,
    fidl.InterfaceRequest<fidl_io.Node> request,
    [int parentFlags = Flags.fsRights]) {
  if (_inheritedNodes.contains(path)) {
    _directory.open(flags, mode, path, request);
  } else {
    super.open(flags, mode, path, request, parentFlags);
  }
}