Fs.exists.result: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs Lines 427-433 of mylsm-lsm-store@0.6.0.1/src/Fs.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/Fs.bend&start_line=427&end_line=433 import Base import mylsm-lsm-store@0.6.0.1/src/FilesCompat.bend as PackedFiles import mylsm-lsm-store@0.6.0.1/src/FsPolicy.bend as Policy # Check whether a filesystem path exists. def exists.result(result: Result<&1, &1, U32 & String, PackedFiles.Info>) -> Result<&1, &1, U32 & String, Bool>: match result: case Fail{(+code, message)}: Policy.missing_path_result(U32.is_eq(code, 2), code, message) case Done{_}: Done{True{}} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/FilesCompat.bend&name=Info https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/FsPolicy.bend&name=missing_path_result