https://onezeronull.com/2015/09/18/copy-remote-files-with-copy-function/
Copy remote files with copy() function