getBasePath method

String getBasePath()

Get config file directory

Implementation

String getBasePath() {
  Pointer<Pointer<Void>> exception = WebFrameworkException.createException();

  GetBasePath function = handler.instance
      .lookupFunction<GetBasePath, GetBasePath>("getBasePath");

  Pointer<Void> string = function.call(implementation, exception);

  WebFrameworkException.checkException(exception, handler);

  String result = handler.getDataFromString(string);

  handler.deleteWebFrameworkString(string);

  return result;
}