def dirname

cswap-bend-cli@0.1.0.0 · fs.bend:156

import cswap-bend-cli@0.1.0.0/fs.bend as Fs
import Base

156# Everything before the last `/`: "a/b/c" is "a/b", "/x" is "/", "x" is ".".
157def dirname(+p: String) -> String:
158  dirname.fin(String.reverse(slash.drop(String.reverse(p))), String.starts_with(p, "/"))

Uses (5)

Used by (4)