Workspace.seg.ok: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ws/workspace.bend as Workspace Lines 92-99 of ezx@1.11.0.0/src/ws/workspace.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ws/workspace.bend&start_line=92&end_line=99 import Base # whether a segment can be part of a member's path: it is not empty, which a # leading `/` or a `//` would make it, it is neither `.` nor `..`, which # would name a directory by where it is from here, and it is not `*`, which # only ends an entry def seg.ok(+seg: String) -> Bool: Bool.and(Bool.not(String.is_empty(seg)), Bool.and(Bool.not(String.eq(seg, ".")), Bool.and(Bool.not(String.eq(seg, "..")), Bool.not(String.eq(seg, "*"))))) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty