copy method

Future<void> copy(
  1. String from,
  2. String to
)

Copies the file at from to to.

Implementation

Future<void> copy(String from, String to) => _run(from, () async {
  _guardWrite('copy');
  final String target = _resolve(to);
  await driver.copy(_resolve(from), target);
  _written(target);
});