FS module didn't work

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:

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