std.path

Modules

std.path.types

Functions operating on paths

Types

#[derive(Show, Eq)]
type Component = 
    | Prefix
    | RootDir
    | CurDir
    | ParentDir
    | Normal String

Values

#[implicit]
let eq_Component : Eq Component

Eq a defines equality (==) on a

#[implicit]
let show_Component : Show Component

Show a represents a conversion function from a to a readable string.

let is_absolute : String -> Bool

let is_relative : String -> Bool

let has_root : String -> Bool

let parent : String -> Option String

let ancestors : String -> Array String

let file_name : String -> Option String

let strip_prefix : String -> String -> Option String

let starts_with : String -> String -> Bool

let ends_with : String -> String -> Bool

let file_stem : String -> Option String

let extension : String -> Option String

let join : String -> String -> String

let with_file_name : String -> String -> String

let with_extension : String -> String -> String

let components : String -> Array Component

let metadata : String -> IO Metadata

let symlink_metadata : String -> IO Metadata

let canonicalize : String -> IO String

let read_link : String -> IO String

let read_dir : String -> IO (Array String)

let exists : String -> IO Bool

let is_file : String -> IO Bool

let is_dir : String -> IO Bool