Error locating correct path
Today I was trying to find a way to solve a problem that actually does not exist.
I was trying to open a file in a project I was working but it looks nodeJS integrator was in another path.
See my code attached:
PS: The problem only occurs on NodeJS Integration for Brackets. In the console the problems doesn't exist.
It only works if the js file is on the rood of the opened project. If the javascript file is within another folder it does not work even the menu say "Start (current NodeJS file) CTRL+Shift + N.
I still think it is a bug.
If you use arquivo.readFile(__dirname + '/arquivos/index.htm', function (err, html) {
it will work.