LensStudio:FileSystem.copyDir
FunctionOptions can take recursive and force.
copyDir(
src,dest,options):void
Options can take recursive and force. The recursive parameter controls whether to read into subdirectories. The force parameter controls whether duplicated contents will be overwritten during the copying process.
fs.copyDir(Tests.srcDir, Tests.destDir, {force: true, recursive: true});
fs.copyDir(Tests.srcDir, Tests.destDir, null);
fs.copyDir(Tests.srcDir, Tests.destDir, {});
fs.copyDir(Tests.srcDir, Tests.destDir, {force: false});
Parameters
| Parameter | Type |
|---|---|
src | Path |
dest | Path |
options | CopyDirOptions |
Returns
void