std/path
On this page
Index
Types
PathErr
struct PathErr {
pattern: Str
}A path pattern is_match cannot parse (Go’s path.ErrBadPattern).
PathErr.display
fn (e: PathErr) display() -> StrFunctions
join
fn join(a: Str, b: Str) -> Strsplit
fn split(p: Str) -> (Str, Str)dir
fn dir(p: Str) -> Strbase
fn base(p: Str) -> Strext
fn ext(p: Str) -> Strclean
fn clean(p: Str) -> Stris_abs
fn is_abs(p: Str) -> Boolis_match
fn is_match(pattern: Str, name: Str) -> Bool ! PathErrWhether name matches the shell pattern: * any sequence of non-/
characters, ? one non-/ character, [a-z] and [^a-z] a byte
class, \c the character c. The pattern must match all of name.