const fs = require('fs'); const path = require('path'); const { logger, ErrorLogger, logRequestInfo } = require('../config/logs'); const dataFolderPath = path.join(__dirname, '../data'); const filesToCreate = ['setup.json', 'user.json', 'file_info.json', 'banUser.json']; filesToCreate.forEach((fileName) => { const filePath = path.join(dataFolderPath, fileName); if (!fs.existsSync(filePath)) { fs.writeFileSync(filePath, '[]'); logger.info(`${fileName} created successfully.`); } else { logger.info(`${fileName} already exists.`); } });