module Rel: sig
.. end
Relative paths.
Relative paths
type
path = Assemblage.Path.t
The type for absolute or relative paths.
type
t = Assemblage.Path.rel
The type for relative paths.
val empty : Assemblage.Path.rel
val dash : Assemblage.Path.rel
val add : Assemblage.Path.rel -> string -> Assemblage.Path.rel
val concat : Assemblage.Path.rel -> Assemblage.Path.rel -> Assemblage.Path.rel
val file : Assemblage.Path.filename -> Assemblage.Path.rel
file name
is add empty f
.
val base : string -> Assemblage.Path.rel
base name
is add empty f
.
val (/) : Assemblage.Path.rel -> string -> Assemblage.Path.rel
val (//) : Assemblage.Path.rel -> Assemblage.Path.rel -> Assemblage.Path.rel
val basename : Assemblage.Path.rel -> string
val dirname : Assemblage.Path.rel -> Assemblage.Path.rel
val rem_prefix : Assemblage.Path.rel -> Assemblage.Path.rel -> Assemblage.Path.rel option
val find_prefix : Assemblage.Path.rel -> Assemblage.Path.rel -> Assemblage.Path.rel
Predicates and comparison
val is_empty : Assemblage.Path.rel -> bool
val is_dash : Assemblage.Path.rel -> bool
val is_prefix : Assemblage.Path.rel -> Assemblage.Path.rel -> bool
val equal : Assemblage.Path.rel -> Assemblage.Path.rel -> bool
val compare : Assemblage.Path.rel -> Assemblage.Path.rel -> int
Conversions
val to_segs : Assemblage.Path.rel -> string list
to_segs r
is r
's segments.
val of_segs : string list -> Assemblage.Path.rel
of_segs segs
is a path from segs
segments.
val to_string : Assemblage.Path.rel -> string
val quote : Assemblage.Path.rel -> string
val pp : Format.formatter -> Assemblage.Path.rel -> unit
File extensions
val ext : Assemblage.Path.rel -> Assemblage.Path.ext option
val get_ext : Assemblage.Path.rel -> Assemblage.Path.ext
val add_ext : Assemblage.Path.rel -> Assemblage.Path.ext -> Assemblage.Path.rel
val rem_ext : Assemblage.Path.rel -> Assemblage.Path.rel
val change_ext : Assemblage.Path.rel -> Assemblage.Path.ext -> Assemblage.Path.rel
val (+) : Assemblage.Path.rel -> Assemblage.Path.ext -> Assemblage.Path.rel
val has_ext : Assemblage.Path.ext -> Assemblage.Path.rel -> bool
val ext_matches : Assemblage.Path.ext list -> Assemblage.Path.rel -> bool
Path sets and maps
module Set: sig
.. end
module Map: sig
.. end