create folder using node.js fs module not working when hosted in render web service
const filePath = `${path.dirname(__dirname)}\\public\\pdfs\\${filename}`;
const dirname = path.dirname(filePath);
// create a new folder for user if he doesn't have an existing
if (!fs.existsSync(dirname)) {
fs.mkdirSync(dirname);
}
// this is my code snippet, please let me know if you need any further clarifications
this is my render web service link : https://pdf-editor-server.onrender.com/