package bistro

  1. Overview
  2. Docs

Helper functions to represent paths as string lists. For absolute paths, the first element of the list is "/".

type t = string list
val t_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val compare : t -> t -> int
val of_string : string -> t
val to_string : t -> string
val make_relative : ?from:string -> string -> t

make_relative ~from:dirA dirB constructs a relative path that can be used to go from dirA to dirB.

  • raises

    Invalid_argument if dirA is relative.


Innovation. Community. Security.