Quantcast
Channel: What is the current directory used by fs module functions? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by ardilgulez for What is the current directory used by fs module...

It's the directory where the node interpreter was started from (aka the current working directory), not the directory of script's folder location (thank you robertklep).Also, current working directory...

View Article



What is the current directory used by fs module functions?

What is the current directory when a method in the fs module is invoked in a typical node.js/Express app? For example:var fs = require('fs');var data = fs.readFile("abc.jpg", "binary");What is the...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images