copyFile function

Future<File> copyFile(
  1. File src,
  2. File dst, {
  3. CopyOptions? options,
})

Copy a file.

Implementation

Future<File> copyFile(File src, File dst, {CopyOptions? options}) async {
  return fs_io.unwrapIoFile(await fs.copyFile(
      fs_io.wrapIoFile(src), fs_io.wrapIoFile(dst),
      options: options));
}