copyFromDisk method
Future<void>
copyFromDisk(
- String diskId, {
- required String relativePath,
- required String destinationPath,
- bool parallel = true,
- 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);