objectExists method

Future<bool> objectExists(
  1. String key
)

Implementation

Future<bool> objectExists(String key) async {
  try {
    final response = await _makeRequest(method: 'HEAD', path: key);

    return response.statusCode == 200;
  } catch (e) {
    return false;
  }
}