@couzteau I think @EricSmekens's idea of using `copyFile()` should be good enough -- in fact, even better, since it'll be faster and will also preserve file metadata more accurately.  I'd forgotten we even had those APIs!  (Although caveat: they're unofficial at the moment and not as well tested since I don't think anything in core uses them yet).