copy function
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);
}