Ende.openRootSync

function · experimental · requires --allow-read, --allow-write

function Ende.openRootSync(path: string | URL, options?: OpenRootOptions): Root

UNSTABLE: New API, yet to be vetted.

Synchronously opens a directory as an Ende.Root. See Ende.openRoot.

using out = Ende.openRootSync("./output", { write: true });
out.writeTextFileSync("report/today.txt", "done");

Requires the --unstable-fs flag, or "unstable": ["fs"] in ende.json.