Honoring Asian Pacific American Heritage Month. See how.

open method

*[<Null safety>](https://dart.dev/null-safety)*
  • @override

void open (dynamic flags, int mode, String path, InterfaceRequest request, [dynamic parentFlags])

override

This function is called from fidl_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(fidl_io.OpenFlags flags, int mode, String path,
    fidl.InterfaceRequest<fidl_io.Node> request,
    [fidl_io.OpenFlags? parentFlags]) {
  if (_inheritedNodes.contains(path)) {
    _directory.open(flags, mode, path, request);
  } else {
    super.open(
        flags, mode, path, request, parentFlags ?? Flags.fsRightsDefault());
  }
}