Disk.is_dir: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/walk/disk.bend as Disk Lines 66-72 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=66&end_line=72 import Base # whether a path is a directory: it opens, and reading it fails as a # directory's read does. Base's File has no stat, and a directory opens for # reading on both lanes. def is_dir(path: String) -> IO(Bool): # noqa: L001 disk effect do IO: r : Result<&1, &1, U32 & String, File> <- File.open(path, "r") is_dir.opened(r) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File.open https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind 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=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/walk/disk.bend&name=is_dir.opened