copyFileSync function

int copyFileSync(
  1. String from,
  2. String to
)

Implementation

int copyFileSync(String from, String to) {
  final ff = File(from);
  if (!ff.existsSync()) {
    return opNotExists;
  }
  createFolder(p.dirname(to));
  ff.copySync(to);
  return opOK;
}