copyToDirectory

fun Path.copyToDirectory(targetDir: Path, vararg options: CopyOption): Path

Copy the file into the target directory using Files.copy.