copyNativeToNative static method

File copyNativeToNative(
  1. {required String pathIn,
  2. required String pathOut,
  3. required Native fsIn,
  4. required Native fsOut}
)

Implementation

static File copyNativeToNative({
  required String pathIn,
  required String pathOut,
  required Native fsIn,
  required Native fsOut,
}) {
  final nPathIn = join(fsIn.root.path, pathIn);
  final nPathOut = join(fsOut.root.path, pathOut);
  io.File(nPathIn).copySync(nPathOut);

  return File(pathOut);
}