Any workaround to a bug in Base.cp?

I’m trying to copy large (few GB) file using cp and the call fails with sendfile: unknown system error -208860302. This bug appears to be open already (IOError from cp with large file on Windows · Issue #30723 · JuliaLang/julia · GitHub), but I wonder what would be a reasonable platform independent workaround.

Thank you very much,

What version of Julia are you on? Looking at the github history, this seems like it might already be fixed on recent versions.

It is 1.6.0, running on Mac.