File systemReference
copyfile
Copy a file to another workspace path.
Details#
Copy a file to another workspace path. No return values.
Signature#
copyfile(source: string, destination: string): ()Parameters#
| Parameter | Type | Description |
|---|---|---|
source | string | Existing workspace-relative source path. |
destination | string | Workspace-relative target path. |
Returns#
No return values.
Examples#
Local example
writefile("docs-example/original-copyfile.txt", "local note")
copyfile("docs-example/original-copyfile.txt", "docs-example/result-copyfile.txt")