import fs from 'node:fs' export const isExistingPath = async (path: string): Promise => { try { await fs.promises.access(path, fs.constants.F_OK) return true } catch { return false } }