File systemReference
renamefile
Rename or relocate a workspace file or folder.
Details#
Rename or relocate a workspace file or folder. No return values.
Signature#
renamefile(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-renamefile.txt", "local note")
renamefile("docs-example/original-renamefile.txt", "docs-example/result-renamefile.txt")