package odoc

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = file
val create : directory:Directory.t -> name:string -> t
val dirname : t -> Directory.t
val basename : t -> t
val append : Directory.t -> t -> t
val set_ext : string -> t -> t
val has_ext : string -> t -> bool
val get_ext : t -> string
val of_string : string -> t
val to_string : t -> string
val segs : t -> string list
val read : t -> (string, [> Or_error.msg ]) Or_error.result
val copy : src:t -> dst:t -> (unit, [> Or_error.msg ]) Or_error.result
val exists : t -> bool
val of_segs : string list -> t

of_segs segs Returns an absolute path if segs starts with an empty segment. Raises Invalid_argument if segs is empty.

val append_segs : t -> string list -> t

Append a list of segments to a path. Do not raise.

module Table : Hashtbl.S with type key = t
OCaml

Innovation. Community. Security.