function touchFile(filepath) {
  fs.mkdirSync(path.dirname(filepath), { recursive: true });
  try {
    fs.utimesSync(filepath, touchRef, touchRef);
  } catch (e) {
    const fd = fs.openSync(filepath, 'a');
    fs.closeSync(fd);
  }
}
Synchronously touch a file. Creates
the file and all its parent directories if necessary.

@param {string} filepath - Path to file