async function lstatSafe(filePath) {
  try {
    return await fs.lstat(filePath);
  } catch (/** @type {any} */ error) {
    /* c8 ignore next 3 */
    if (error.code !== "ENOENT") {
      throw error;
    }
  }
}
Get stats of a given path without following symbolic links.
@param {string} filePath The path to target file.
@returns {Promise<Stats | undefined>} The stats.