docs: function write(filename, mtime, data) {
    var tempname = filename + '+';
  
    try {
      mkdirp(path.dirname(filename));
      fs.writeFileSync(tempname, toBuffer(data));
      fs.renameSync(tempname, filename);
      fs.utimesSync(filename, mtime, mtime);
    } catch (err) {
      // Try to remove tmp file on error.
      // Don't check if exists, just suppress errors
      try { fs.unlinkSync(tempname); } catch (__) {}
  
      throw err;
    }
  }