Disk.is_dir.code: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/walk/disk.bend as Disk Lines 39-47 of bolt@1.27.0.0/src/walk/disk.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/walk/disk.bend&start_line=39&end_line=47 import Base # whether a first read failed as a directory's does (EISDIR, 21, in C and # in node alike) def is_dir.code(rr: Result<&1, &1, U32 & String, List<&2, U32>>) -> Bool: match rr: case Fail{e}: (code, _msg) = e U32.is_eq(code, 21) case Done{_bytes}: False{} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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