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.
Options
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}); Copy
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});
Optionscan 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.