Skip to main content

overwolf.io.copyFile

Overwolf APIs / overwolf / overwolf / io / copyFile

function copyFile(
src: string,
dst: string,
overrideFile: boolean,
reserved: boolean,
callback: CallbackFunction<Result>,
): void;

Copy a file from the local extension directory to a destination on the local machine.

Parameters

ParameterTypeDescription
srcstringa relative (to the root of your extension's folder) file path or a full overwolf-extension:// URI to the source file to be copied
dststringThe destination path (including filename) to copy to.
overrideFilebooleantrue if you want an existing file to be overwritten, false otherwise.
reservedbooleanfor future use.
callbackCallbackFunction<Result>result callback.

Returns

void