Module

jinks/boundary

src/jinks/boundary.pooka

The few filesystem operations the standard library does not yet expose. Page policy stays in Pooka; this bridge checks links and stages directory publication without turning paths into shell commands.

API reference

function

tree

src/jinks/boundary.pooka:28
tree(path: String) -> Result(Nil, String)
INFERREDfn(String) -> Result(Nil, String)

A link anywhere in an input tree is an error, including links to nowhere.

function

guard

src/jinks/boundary.pooka:33
guard(root: String, relative: String) -> Result(Nil, String)
INFERREDfn(String, String) -> Result(Nil, String)

Inspect every existing component below the site's root without following links.

function

staged

src/jinks/boundary.pooka:39
staged(
  root: String,
  relative: String,
  work: fn(String, String) -> Result(Nil, String)
) -> Result(Nil, String)
INFERREDfn(String, String, fn(String, String) -> Result(Nil, String)) -> Result(Nil, String)

Publish only after the callback has filled a fresh sibling directory. A callback Error leaves the previous output in place and removes staging.

function

create

src/jinks/boundary.pooka:50
create(root: String, relative: String, content: String) -> Result(Nil, String)
INFERREDfn(String, String, String) -> Result(Nil, String)

Create a source file exclusively after checking every existing component. A second writer receives an error rather than truncating the first file.