AcediaDocumentation

appendfile

Appends bytes to a workspace file.

Paths must remain inside the workspace. Writes to executable/script-launching and other blocked extensions are refused.

appendfile(path: string, contents: string): ()

Parameters

ParameterTypeDescription
pathstringPath relative to the Acedia workspace.
contentsstringBytes to write.

Errors: An invalid path or failed write raises an error.

Aliases: appendfileasync.

On this page