Answer by Matt Fletcher for Access a file outside the current folder in Node.js
Well yes, __dirname is the value of the current folder, so it is still relative to modulos. You'd have to store that value to a variable and pass it through from the index file in the root.Why not just...
View ArticleAccess a file outside the current folder in Node.js
I am trying to create a module for routing in Node.js inside a folder in the main server, like this.+root.js (server main)+modulos (folder where rutas.js is)++rutas.js+shalimar (folder where all the...
View Article
More Pages to Explore .....