gleam_community/path

Types

pub opaque type Path
pub type PathKind {
  Absolute
  Relative
}

Constructors

  • Absolute
  • Relative

Functions

pub fn absolute(self: Path) -> Path
pub fn absolute_or_resolve_from(self: Path, root: String) -> Path
pub fn and_then(self: Path, piece: Path) -> Path
pub fn and_then_string(self: Path, piece: String) -> Path
pub fn append(self: Path, piece: Path) -> Path
pub fn append_string(self: Path, piece: String) -> Path
pub fn equals(
  self: Path,
  segments: List(String),
  kind: PathKind,
) -> Bool
pub fn from_string(path_string: String) -> Path
pub fn relative(self: Path) -> Path
pub fn to_string(self: Path) -> String
Search Document