std.path

Functions operating on paths

Types

type Component = 
    | Prefix
    | RootDir
    | CurDir
    | ParentDir
    | Normal String

Values

let eq_Component : std.cmp.Eq std.path.types.Component

Eq a defines equality (==) on a

let show_Component : std.show.Show std.path.types.Component

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

let is_absolute : String -> std.types.Bool

let is_relative : String -> std.types.Bool

let has_root : String -> std.types.Bool

let parent : String -> std.types.Option String

let ancestors : String -> Array String

let file_name : String -> std.types.Option String

let strip_prefix : String -> String -> std.types.Option String

let starts_with : String -> String -> std.types.Bool

let ends_with : String -> String -> std.types.Bool

let file_stem : String -> std.types.Option String

let extension : String -> std.types.Option String

let join : String -> String -> String

let with_file_name : String -> String -> String

let with_extension : String -> String -> String

let components : String -> Array std.path.types.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 std.types.Bool

let is_file : String -> IO std.types.Bool

let is_dir : String -> IO std.types.Bool