javascript - How to go back 1 folder level with __dirname? - Stack Overflow

PHOTO EMBED

Fri Jun 25 2021 09:24:45 GMT+0000 (UTC)

Saved by @jaimin

(path.join(__dirname , 'views' ,'main.html')) -> will return Root:/views/main.html
content_copyCOPY

https://stackoverflow.com/questions/30845416/how-to-go-back-1-folder-level-with-dirname