Copy the entire contents of a directory to the target location. All paths will be merged / created for you.
the location of the folder to copy the contents of
Optional
sub folder within the target project to copy the contents to
if this script is located as a sibling to the "files" directory, this will copy each file in the "files" directory to the process.cwd() directory.
import { files } from 'ember-apply';await files.applyFolder(path.resolve(__dirname, 'files')); Copy
import { files } from 'ember-apply';await files.applyFolder(path.resolve(__dirname, 'files'));
if this script is located as a sibling to the "files" directory, this will copy each file in the "files" directory to the ${process.cwd()}/target/subfolder directory.
${process.cwd()}/target/subfolder
import { files } from 'ember-apply';await files.applyFolder(path.resolve(__dirname, 'files'), 'target/subfolder'); Copy
import { files } from 'ember-apply';await files.applyFolder(path.resolve(__dirname, 'files'), 'target/subfolder');
Copy the entire contents of a directory to the target location. All paths will be merged / created for you.