const serverPath = require("./serverPath.js") const boards = require(serverPath+"/board/boards.js"); const fs = require("fs"); const { pageTop, pageBottom } = require(serverPath+"/html.js") console.log(boards); for (let board = 0; board < boards.length; board++) { console.log(boards[board]); let boardPath = `${serverPath}/board/${boards[board]}`; if (fs.existsSync(boardPath)) { console.log(`Directory /${boards[board]}/ exists`) } else { console.log(`Directory /${boards[board]}/ doesn't exist... Creating`) fs.mkdirSync(boardPath); fs.appendFile(`${serverPath}/board/${boards[board]}/index.html`,`