size method

  1. @override
Future<int> size(
  1. String path
)

Get the file size of a given file.

Implementation

@override
Future<int> size(String path) {
  return _attempt(
    0,
    () async => (await bucket.head(_objectKey(path)))?.size ?? 0,
  );
}