renamefile
Renames or moves a workspace file.
Missing parent folders of the destination are created, and an existing destination file is replaced. Both paths stay inside the workspace; see Filesystem for the path rules.
renamefile(from: string, to: string): ()Parameters
| Parameter | Type | Description |
|---|---|---|
from | string | Existing file, relative to the Acedia workspace. |
to | string | New path, relative to the Acedia workspace. |
Errors: Raises if either path reaches outside the workspace, if to has an executable file extension, or if the rename fails.
