Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fs = require('fs.extra');
- var Q = require("q");
- function copyCleanBaseFiles() {
- var d = Q.defer();
- console.log("done copying contents of clean base into temp");
- fs.copyRecursive('./cleanBase', './temp', function (err) {
- if (err) {
- console.log("error copying contents of clean base into temp : \n" + err);
- d.reject();
- } else {
- console.log("done copying contents of clean base into temp");
- d.resolve();
- }
- });
- return d.promise;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement