copy function

void copy(
  1. FileSystemEntity entity,
  2. Directory destDir, [
  3. GrinderContext? context
])

Copy the given entity to the destination directory.

Note that the context parameter is deprecated.

Implementation

void copy(FileSystemEntity entity, Directory destDir,
    [GrinderContext? context]) {
  log('copying ${entity.path} to ${destDir.path}');
  return _copyImpl(entity, destDir);
}