@atomist/automation-client
Version:
Atomist API for software low-level client
9 lines • 422 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const projectUtils_1 = require("../util/projectUtils");
function copyFiles(from, to) {
return projectUtils_1.toPromise(from.streamFiles())
.then(files => Promise.all(files.map(f => f.getContent().then(content => to.addFile(f.path, content))))).then(() => to);
}
exports.copyFiles = copyFiles;
//# sourceMappingURL=projectUtils.js.map