def missing_path_result

mylsm-lsm-store@0.6.0.1 · src/FsPolicy.bend:3

import mylsm-lsm-store@0.6.0.1/src/FsPolicy.bend as FsPolicy
import Base

3# Treats only a missing-path errno as absence.
4def missing_path_result(missing: Bool, +code: U32, message: String) -> Result<&1, &1, U32 & String, Bool>:
5  match missing:
6    case True{}:
7      Done{False{}}
8    case False{}:
9      Fail{(code, message)}

Uses (6)

Used by (1)