def outside

ezx@1.11.0.0 · src/pkg/pkg.bend:781

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base
import ezx@1.11.0.0/src/pkg/path.bend as P

781# a checkout-relative path that climbs above the checkout's top
782def outside(+at: String) -> Bool:
783  +n = P.norm(at)
784  Bool.or(String.eq(n, ".."), String.starts_with(n, "../"))

Uses (6)

Used by (2)