Module As_path

module As_path: sig .. end
File paths.

For documentation see Assemblage.Path.



File paths


type filename = string 
type rel 
type abs 
type t 
val root : t
val empty : t
val dash : t
val add : t -> string -> t
val concat : t -> rel -> t
val (/) : t -> string -> t
val (//) : t -> rel -> t
val file : filename -> t
val base : string -> t
val basename : t -> string
val dirname : t -> t
val rem_prefix : t -> t -> rel option
val find_prefix : t -> t -> t option

Predicates and comparison


val is_root : t -> bool
val is_empty : t -> bool
val is_dash : t -> bool
val is_rel : t -> bool
val is_abs : t -> bool
val is_prefix : t -> t -> bool
val equal : t -> t -> bool
val compare : t -> t -> int

Conversions


val to_rel : t -> rel option
val of_rel : rel -> t
val to_abs : t -> abs option
val of_abs : abs -> t
val to_segs : t -> [ `Abs of string list | `Rel of string list ]
val of_segs : [ `Abs of string list | `Rel of string list ] -> t
val to_string : t -> string
val of_string : string -> t
val quote : t -> string
val pp : Format.formatter -> t -> unit

File extensions


type ext = [ `A
| `Byte
| `C
| `Cma
| `Cmi
| `Cmo
| `Cmt
| `Cmti
| `Cmx
| `Cmxa
| `Cmxs
| `Css
| `Dll
| `Exe
| `Ext of string
| `Gif
| `H
| `Html
| `Img
| `Install
| `Jpeg
| `Js
| `Json
| `Lib
| `Md
| `Ml
| `Ml_dep
| `Ml_pp
| `Mli
| `Mli_dep
| `Mli_pp
| `Native
| `O
| `Opt
| `Png
| `Sh
| `So
| `Tar
| `Tbz
| `Xml
| `Zip ]
val ext_to_string : ext -> string
val ext_of_string : string -> ext
val pp_ext : Format.formatter -> ext -> unit
val ext : t -> ext option
val get_ext : t -> ext
val add_ext : t -> ext -> t
val rem_ext : t -> t
val change_ext : t -> ext -> t
val (+) : t -> ext -> t
val has_ext : ext -> t -> bool
val ext_matches : ext list -> t -> bool

Relative paths


module Rel: sig .. end
Relative paths.

Absolute paths


module Abs: sig .. end
Absolute paths.

Path sets and maps


module Set: sig .. end
module Map: sig .. end