copyFromDisk method

  1. @override
Future<void> copyFromDisk(
  1. String diskId, {
  2. required String relativePath,
  3. required String destinationPath,
})
override

Recursively copies a file or directory from a mounted diskId. relativePath is inside the volume; destinationPath is absolute and must not exist. Its parent must exist. Reject traversal out of the volume. A failed copy can leave partial data; no overwrite or merge is performed.

Implementation

@override
Future<void> copyFromDisk(
  String diskId, {
  required String relativePath,
  required String destinationPath,
}) =>
    _operate<void>('copyFromDisk', diskId, arguments: {
      'relativePath': relativePath,
      'localPath': destinationPath,
    });