This
post-processing script uses the
dot_clean command to delete
._* dot underbar files:
Groovy: Select all
{ source, target ->
system 'dot_clean', '-mvf', target.dir
}

macOS may create
._* dot underbar files to store Finder information, Unix permissions and
xattr metadata when processing files on an external USB flash drive that is formatted with
FAT or
exFAT. Please read
Re: Dot files and
AppleSingle and AppleDouble formats for details.