package file_path

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Prefix operators: conversions

These use two characters indicating the type of path: 1. absolute, relative, or either 2. compound or single-part

If constructing a path, that is all.

If consuming a path, they use a third character indicating the return type.

of_string synonyms: just indicate the path type being constructed

val (~/) : string -> Types.Relative.t
val (!/) : string -> Types.Absolute.t
val (?/) : string -> Types.Path.t
val (~.) : string -> Types.Part.t

to_string synonyms: end in '$' for a string return type

val (~/$) : Types.Relative.t -> string
val (!/$) : Types.Absolute.t -> string
val (?/$) : Types.Path.t -> string
val (~.$) : Types.Part.t -> string

Up-conversions: end in '?' or '~' to indicate return type

val (~.?) : Types.Part.t -> Types.Path.t

Infix operators: append* synonyms

These use three characters: 1. '/' indicating some kind of path concatenation 2. type of left argument and result 3. type of right argument and kind of concatenation

These operators are left-associative and all share the same precedence.

append synonyms: end in '/' for a compound right argument

append_part synonyms: end in '.' for a single-part right argument

append_to_basename_exn synonyms: end in '^' for string concatenation

val (/~^) : Types.Relative.t -> string -> Types.Relative.t
val (/!^) : Types.Absolute.t -> string -> Types.Absolute.t
val (/?^) : Types.Path.t -> string -> Types.Path.t
val (/.^) : Types.Part.t -> string -> Types.Part.t
OCaml

Innovation. Community. Security.