Home > @microsoft/node-core-library > FileSystem > copyFile

FileSystem.copyFile() method

Copies a file from one location to another. By default, destinationPath is overwritten if it already exists. Behind the scenes it uses fs.copyFileSync().

Signature:

static copyFile(options: IFileSystemCopyFileOptions): void;

Parameters

Parameter Type Description
options IFileSystemCopyFileOptions  

Returns:

void