const fs = require('fs').promises; async function exists(path) { try { await fs.access(path); return true; } catch { return false; } } module.exports = { exists }