merge-dirs node module to synchronously and recursively merge files from one folder to another var mergedirs = require('merge-dirs'); // copy folder/a into folder/b mergedirs('/folder/a', '/folder/b'); install $ npm install merge-dirs licence MIT