Monday, 17 April 2017

Write file to absolute path outside of app directory [Node.js]

I'm trying to create and write to a file in a folder outside of node app's source folder.

I have a absolute path like this E:\myFolder\ but when I try to writeFile with fs it throws ENOENT error.

I've created E:\myFolder manually, but I think the problem is my app can't see outside of it's own folder.

Any way to solve this?



via kecman

No comments:

Post a Comment