runCopy function

Future<void> runCopy(
  1. String sourcePath,
  2. String destinationPath
)

Implementation

Future<void> runCopy(String sourcePath, String destinationPath) async {
  final sourceFile = File(sourcePath);
  if (await sourceFile.exists()) {
    await sourceFile.copy(destinationPath);
    printBoxMessage('♥ Copied $sourcePath to $destinationPath');
  } else {
    printBoxMessage('○ Source file not found: $sourcePath');
  }
}