How do I rewrite this line of code
call system("cp /tmp/foo.txt /tmp/bar.txt")
into a vim command which is more portable and OS-independent?
I've been looking around but checking for "vimscript copy file / folder" surprisingly doesn't show any results.
Important: I need to also know how to copy folders using vimscript, too. Not make a new folder, but copy one which already exists.