Quantcast
Channel: Access a file outside the current folder in Node.js - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article



Access 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
Browsing all 2 articles
Browse latest View live




Latest Images