Skip to main content

$copyfs

This function uses the fs-extra library to copy files or directories from the specified source path to the specified destination path.

Parameters

ParameterDescription
sourcePathPath to the source file or directory to be copied.
destinationPathPath to the destination where the file or directory will be copied.

Example

<AoiClient>.addCommand({
name: "misc",
code: `
$copyfs[source/path/file.txt; destination/path/file_copy.txt]
`,
});