This way I and others can just copy a file directly and get rid of all the heredoc + write_file() nonsense I currently have to do. This would be really helpful in exporting a bunch of static content from my mod (html, css, js, images) and then writing a small config file. Currently I have to turn each static file in to a heredoc which gets tedious when I update them and tricky when it is an image or other binary data.
Code: Select all
copy_file(source, destination[, mod_name[, by_player]])