Qu

copy_file

Builtin index · File I/O

copy_file(src, dst, [on_exists="error"])

Input: src, dst, on_exists · Output: no output

What it is

Copies src to dst, leaving the original in place. Same on_exists values and return convention as rename_file/move_file.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
copy_file(src, dst, [on_exists="error"])
src —Copies src to dst, leaving the original in place.
dst —Copies src to dst, leaving the original in place.
on_exists optional (default "error")Same on_exists values and return convention as rename_file/move_file.
not documented yet—

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.