XpmInitTemplateBase.copyFolder() method
Copies an entire folder from the templates folder to the destination.
Signature
copyFolder(source: string, destination?: string): Promise<void>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
source |
string |
The relative path to the source folder within the templates folder. |
|
destination |
string |
(Optional) The destination folder path (defaults to the same relative path as the source). |
Returns
Promise<void>
A promise that resolves when the folder has been copied.
Remarks
This method recursively copies the complete folder structure, including all files and subfolders, from the source to the destination. The entire folder tree is replicated, preserving the relative paths and structure. Files are copied without modifications; use XpmInitTemplateBase.render() for individual files that require variable substitution.
Generated via tsdoc2docusaurus 1.3.0-pre by API Extractor/Documenter 7.55.2.