package jenga

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t

Type for absolute paths.

val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val hash_fold_t : Ppx_hash_lib.Std.Hash.state -> t -> Ppx_hash_lib.Std.Hash.state
val hash : t -> Ppx_hash_lib.Std.Hash.hash_value
val compare : t -> t -> int
val bin_t : t Core.Bin_prot.Type_class.t
val bin_read_t : t Core.Bin_prot.Read.reader
val __bin_read_t__ : (int -> t) Core.Bin_prot.Read.reader
val bin_reader_t : t Core.Bin_prot.Type_class.reader
val bin_size_t : t Core.Bin_prot.Size.sizer
val bin_write_t : t Core.Bin_prot.Write.writer
val bin_writer_t : t Core.Bin_prot.Type_class.writer
val bin_shape_t : Core.Bin_prot.Shape.t
val unix_root : t
val create : string -> t
val to_string : t -> string

Always has leading /.

val relative : dir:t -> string -> t

append '/'-separated parts to the path. suppresses the '.' and empty parts and reduces the ".."s

val basename : t -> string
val dirname : t -> t
val split : t -> t * string
val reach_from : dir:t -> t -> string

reach_from ~dir t = x means relative ~dir x = t

val is_descendant : dir:t -> t -> bool

is_descendant ~dir t means parts dir is a prefix of parts t. A path is considered a descendant of itself.

OCaml

Innovation. Community. Security.