open method

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

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

Implementation

void open(
    OpenFlags flags, int mode, String path, InterfaceRequest<Node> request,
    [OpenFlags? parentFlags]) {
  if (type() == DirentType.directory) {
    // dir types should implement this function
    throw UnimplementedError();
  }
  sendErrorEvent(flags, ZX.ERR_NOT_DIR, request);
}