def path.norm.step

bend-kit-files@0.3.1.0 · files.bend:46

import bend-kit-files@0.3.1.0/files.bend as Files
import Base

46def path.norm.step(
47  skip: Bool, up: Bool, s: String, stack: List<&2, String>, abs: Bool
48) -> List<&2, String>:
49  match skip:
50    case True{}:
51      stack
52    case False{}:
53      match up:
54        case True{}:
55          path.norm.pop(stack, abs)
56        case False{}:
57          s <> stack

Uses (4)

Used by (1)