Module

jinks/storage

src/jinks/storage.pooka

Filesystem errors retain the path that caused them. Every caller gets the same Result shape, so the command boundary can explain one failure.

API reference

function

read

src/jinks/storage.pooka:12
read(name: String) -> Result(String, String)
INFERREDfn(String) -> Result(String, String)
function

write

src/jinks/storage.pooka:19
write(name: String, text: String) -> Result(Nil, String)
INFERREDfn(String, String) -> Result(Nil, String)
function

files

src/jinks/storage.pooka:31
files(root: String, prefix: String) -> Result(List(String), String)
INFERREDfn(String, String) -> Result(List(String), String)

Enumerate files only. Sorting is independent of filesystem iteration order.

function

walk

src/jinks/storage.pooka:46
walk(root: String, prefix: String, names: List(String), found: List(String)) -> Result(
  List(String),
  String
)
INFERREDfn(String, String, List(String), List(String)) -> Result(List(String), String)