file_copy
host callCapy
function file_copy(from : string, to : string) bool
Description
file_copy copies a file to another path. The source path remains available after a successful copy.
Parameters
from : source path
to : destination path
Return Values
true when Capy copies the file. Otherwise, it returns false.
Example
Capy
file_put_contents("/tmp/doc-copy-src.txt", "payload")
file_copy("/tmp/doc-copy-src.txt", "/tmp/doc-copy-dst.txt")
print(file_get_contents("/tmp/doc-copy-dst.txt"), "\n")