def Bytes.endpoint.exists
mylsm-lsm-store@0.6.0.1 · mylsm.bend:328
import mylsm-lsm-store@0.6.0.1/mylsm.bend as Mylsm
import Base
import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs
328def Bytes.endpoint.exists(
329 paths: String & String & String
330) -> IO(Result<&1, &1, Bytes.Error, Bytes.Handle>):
331 match paths:
332 case (canonical, (exists_path, retained_path)):
333 do IO<Result<&1, &1, Bytes.Error, Bytes.Handle>>:
334 exists : Result<&1, &1, U32 & String, Bool> <- Fs.exists(exists_path)
335 Bytes.endpoint.checked(canonical, retained_path, exists)