Module
jinks/boundary
src/jinks/boundary.pookaThe 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
tree(path: String) -> Result(Nil, String)
INFERRED
fn(String) -> Result(Nil, String)A link anywhere in an input tree is an error, including links to nowhere.
guard(root: String, relative: String) -> Result(Nil, String)
INFERRED
fn(String, String) -> Result(Nil, String)Inspect every existing component below the site's root without following links.
staged(
root: String,
relative: String,
work: fn(String, String) -> Result(Nil, String)
) -> Result(Nil, String)
INFERRED
fn(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.
create(root: String, relative: String, content: String) -> Result(Nil, String)
INFERRED
fn(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.