FS module didn't work


#1

I’m trying to using the fs.writeFileSync module

fs.readdir(dirName, (err, files) => {
  files.forEach(file => {
    console.log(file);
    /*
        "available_modules"
        "index.js"
    */
  });
})

But it didn’t save the file :confused:


#2

Hi there! Could you link to the notebook with all your code?