AcediaDocumentation

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

ParameterTypeDescription
fromstringExisting file, relative to the Acedia workspace.
tostringNew 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.

On this page