Future<bool> exists(String path) async { try { await stat(path); return true; } on MeshagentException catch (error) { if (error.statusCode == 404) return false; rethrow; } }