function copyFolderSync(from, to) {
  fs.readdirSync(from).forEach(element => {
    const src = path.posix.join(from, element);
    const dest = path.posix.join(to, element);
    if (fs.statSync(src).isFile()) {
      mkdirp(path.dirname(dest));
      fs.copyFileSync(src, dest);
      log_verbose(`copying ${src} -> ${dest}`);
    } else {
      copyFolderSync(src, dest);
    }
  });
}
/**
 * Utility function to copy all files in a folder recursively.
 */
Utility function to copy all files in a folder recursively.
Utility function to copy all files in a folder recursively .
function copyFolderSync(from, to) {
  fs.readdirSync(from).forEach(element => {
    const src = path.posix.join(from, element);
    const dest = path.posix.join(to, element);
    if (fs.statSync(src).isFile()) {
      mkdirp(path.dirname(dest));
      fs.copyFileSync(src, dest);
      log_verbose(`copying ${src} -> ${dest}`);
    } else {
      copyFolderSync(src, dest);
    }
  });
}
function copyFolderSync ( from , to ) { fs . readdirSync ( from ) . forEach ( element => { const src = path . posix . join ( from , element ) ; const dest = path . posix . join ( to , element ) ; if ( fs . statSync ( src ) . isFile ( ) ) { mkdirp ( path . dirname ( dest ) ) ; fs . copyFileSync ( src , dest ) ; log_verbose ( ` ${ src } ${ dest } ` ) ; } else { copyFolderSync ( src , dest ) ; } } ) ; }
Utility function to copy all files in a folder recursively.
Utility function to copy all files in a folder recursively .