copy method

  1. @override
Future<void> copy(
  1. String from,
  2. String to
)
override

Copy an object from from to to.

Implementation

@override
Future<void> copy(String from, String to) async {
  final sourceKey = _fullKey(from);
  final destinationKey = _fullKey(to);
  await client.copyObject(bucket, destinationKey, '$bucket/$sourceKey');
}