copyToScope method

Future<void> copyToScope(
  1. String sourcePath,
  2. StorageScope dest,
  3. String destPath
)

Copy into another scope — the backends must share a substrate (same underlying store) for the raw copy to land.

Implementation

Future<void> copyToScope(
  String sourcePath,
  StorageScope dest,
  String destPath,
) {
  validateKey(sourcePath);
  validateKey(destPath);
  return _backend.copy(key(sourcePath), dest.key(destPath));
}