Future<bool> exists(String path) async { final result = await _invoke("exists", {"path": path}); if (result is! JsonContent) { throw _unexpectedResponseError("exists"); } return result.json["exists"]; }