title: Access name of file being written by fs.writeFile
body: <p>I'm using fs.writeFile to write a number of files to a directory.  I'd like to use the name of the file being written in a callback (ex. printing "file x has been written").  </p>
  
  <p>How can I get the name of the file being written (x)?</p>
  
  <p>Using the filename variable I passed to writeFile will not work due to writeFile being asynchronous.</p>
  
  <p>Thanks!</p>