copy method

Future<StreamedResponse> copy(
  1. PathUri sourcePath,
  2. PathUri destinationPath, {
  3. bool overwrite = false,
})

Copies the resource from sourcePath to destinationPath.

If overwrite is set any existing resource will be replaced. See:

Implementation

Future<http.StreamedResponse> copy(
  PathUri sourcePath,
  PathUri destinationPath, {
  bool overwrite = false,
}) {
  final request = copy_Request(
    sourcePath,
    destinationPath,
    overwrite: overwrite,
  );

  return csrfClient.send(request);
}