open method

*[<Null safety>](*
  • @override

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


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.


void open(int flags, int mode, String path, InterfaceRequest<Node> request,
    [int parentFlags = Flags.fsRightsDefault]) {
  if (_isClosed) {
    sendErrorEvent(flags, ZX.ERR_NOT_SUPPORTED, request);

  final status = _validateFlags(flags);
  if (status != ZX.OK) {
    sendErrorEvent(flags, status, request);

  // Forward the reqeuest on to the remote directory, mode, path, request);