const Path = require("path"); const fs = require("fs"); fs.copyFile("./static/video/background_video/index0.ts", "./dist/index0.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { return console.error("Video segments successfully copied! \n"); } }); fs.copyFile("./static/video/background_video/index1.ts", "./dist/index1.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { return console.error("Video segments successfully copied! \n"); } }); fs.copyFile("./static/video/background_video/index2.ts", "./dist/index2.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { return console.error("Video segments successfully copied! \n"); } }); fs.copyFile("./static/video/background_video/index3.ts", "./dist/index3.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { return console.error("Video segments successfully copied! \n"); } }); fs.copyFile("./static/video/background_video/index4.ts", "./dist/index4.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { return console.error("Video segments successfully copied! \n"); } }); fs.copyFile("./static/video/background_video/index5.ts", "./dist/index5.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { return console.error("Video segments successfully copied! \n"); } }); fs.copyFile("./static/video/background_video/index6.ts", "./dist/index6.ts", (err) => { if (err) { return console.error("Video segments were not copied! \n", err); } else { return console.error("Video segments successfully copied! \n"); } });