def exists

mylsm-lsm-store@0.6.0.1 · src/Fs.bend:435

import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs
import Base
import mylsm-lsm-store@0.6.0.1/src/FilesCompat.bend as PackedFiles

435# Returns whether a path exists and preserves other stat errors.
436def exists(path: String) -> IO(Result<&1, &1, U32 & String, Bool>):
437  do IO<Result<&1, &1, U32 & String, Bool>>:
438    result : Result<&1, &1, U32 & String, PackedFiles.Info> <- PackedFiles.stat(path)
439    return exists.result(result)

Uses (11)

Used by (19)