const fileExists = async (path) => {
  try {
    const stat = await pStat(path);
    return stat.isFile();
  } catch (error) {