[Solved] Writing files doesnt work for some reason

I just noticed that for some reason below snippet :

const text = "some text" 
fs.writeFile("text.txt", text, err => {
  if (err) throw err;
  console.log("text saved!");

Doesnt work for me in meteor. There is no typo or so and in pure node it writes text perfectly. I tried also absolute path to file instead of just ‘text.txt’, but without success. No error is throw, just nothing is written into file ( its not created ), do any of you have idea what could be reason? Thanks in advance.

EDIT : everything works but of course files are saved in working directory do in .meteor/local/build/…

1 Like