odoc.odoc
Fs.File
odoc
odoc.document
odoc.examples
odoc.html
odoc.html_support_files
odoc.index
odoc.json_index
odoc.latex
odoc.loader
odoc.manpage
odoc.model
odoc.model_desc
odoc.ocamlary
odoc.occurrences
odoc.odoc_utils
odoc.search
odoc.search_html_frontend
odoc.syntax_highlighter
odoc.xref2
odoc.xref_test
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.
of_segs segs
segs
Invalid_argument
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