Xo is experimental. The source is now public on GitHub, or try Xo in your browser.
Menu · path

Docs

std/path

On this page

Index

Types

PathErr

struct PathErr {
  pattern: Str
}

A path pattern is_match cannot parse (Go’s path.ErrBadPattern).

Source: std/path.xo:14

PathErr.display

fn (e: PathErr) display() -> Str

Source: std/path.xo:18

Functions

join

fn join(a: Str, b: Str) -> Str

Source: std/path.xo:5

split

fn split(p: Str) -> (Str, Str)

Source: std/path.xo:6

dir

fn dir(p: Str) -> Str

Source: std/path.xo:7

base

fn base(p: Str) -> Str

Source: std/path.xo:8

ext

fn ext(p: Str) -> Str

Source: std/path.xo:9

clean

fn clean(p: Str) -> Str

Source: std/path.xo:10

is_abs

fn is_abs(p: Str) -> Bool

Source: std/path.xo:11

is_match

fn is_match(pattern: Str, name: Str) -> Bool ! PathErr

Whether 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.

Source: std/path.xo:23

↑ index