UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

1 lines 208 B
import{stat}from"node:fs/promises";import{isErrnoCode}from"#shared/guards.js";async function pathExists(t){try{return await stat(t),!0}catch(e){if(isErrnoCode(e,`ENOENT`))return!1;throw e}}export{pathExists};