Cannot create folder after hosting web service

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)) {

// this is my code snippet, please let me know if you need any further clarifications
this is my render web service link :

1 Like

are you getting any error message ? if yes post it here

I see that you’ve already initiated a support ticket with us. To avoid any confusion or duplicate efforts, let’s continue the conversation there

Render Support, UTC+3