// Fs.exists — distinguish an absent path from metadata failures. function exists(path) { const fs = require("fs"); try { fs.statSync(Buffer.from(io_bytes(path))); return io_done({ $: "True" }); } catch (e) { if (e && e.code === "ENOENT") { return io_done({ $: "False" }); } return io_fail(Math.abs(e.errno ?? 5)); } }