moveToDisk method

Future<void> moveToDisk(
  1. String disk,
  2. String path, [
  3. String? to
])

Moves the file at path to the same path on disk, or to to.

Implementation

Future<void> moveToDisk(String disk, String path, [String? to]) async {
  await copyToDisk(disk, path, to);
  await delete(path);
}