copyFromDisk method

  1. @override
Future<void> copyFromDisk(
  1. String diskId, {
  2. required String relativePath,
  3. required String destinationPath,
  4. bool parallel = true,
  5. FileCopyProgressCallback? onProgress,
})
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,
  bool parallel = true,
  FileCopyProgressCallback? onProgress,
}) =>
    _copyOperation(
        'copyFromDisk',
        diskId,
        {
          'relativePath': relativePath,
          'localPath': destinationPath,
          'parallel': parallel,
        },
        onProgress);