copyFileContent function

Future<int> copyFileContent(
  1. File src,
  2. File dst
)

Copy the file content

Implementation

Future<int> copyFileContent(File src, File dst) async {
  final parent = dst.parent;
  if (!await parent.exists()) {
    await parent.create(recursive: true);
  }
  return _doCopyFileContent(src, dst);
}