@cap-js-community/sap-afc-sdk
Version:
SAP Advanced Financial Closing SDK for CDS
16 lines (13 loc) • 389 B
JavaScript
/* eslint-disable no-console */
;
const fs = require("fs");
const path = require("path");
module.exports = () => {
try {
const dataPath = path.join(process.cwd(), "db/data");
fs.cpSync(path.join(__dirname, "../../test/data"), dataPath, { recursive: true });
console.log(`Folder '${dataPath}' written.`);
} catch (err) {
console.error(err.message);
}
};