Home > @rushstack/node-core-library > FileSystem > copyFiles
FileSystem.copyFiles() method
Copies a file or folder from one location to another, recursively copying any folder contents. By default, destinationPath is overwritten if it already exists.
Signature:
static copyFiles(options: IFileSystemCopyFilesOptions): void;
Parameters
Parameter | Type | Description |
---|---|---|
options | IFileSystemCopyFilesOptions |
Returns:
void
Remarks
If you only intend to copy a single file, it is recommended to use FileSystem.copyFile() instead to more clearly communicate the intended operation.
The implementation is based on copySync()
from the fs-extra
package.