type t = w Local_gen.t
val hash : t -> int
val to_string : t -> string
val of_string : string -> t
val parse_string_exn : loc:Stdune__Loc0.t -> string -> t
a directory is smaller than its descendants
include Comparator.S with type t := t
val compare : t -> t -> Ordering.t
val extension : t -> string
val basename : t -> string
val basename_opt : t -> string option
module Set : sig ... end
val to_string_maybe_quoted : t -> string
val is_root : t -> bool
val root : t
module L : sig ... end
val explode : t -> string list
Source.t
here is a lie in some cases: consider when the context name happens to be "install"
or ".alias"
.
This function does the same as extract_build_context
, but has a "righter" type.
module Kind : sig ... end
val set_build_dir : Kind.t -> unit
set the build directory. Can only be called once and must be done before paths are converted to strings elsewhere.
val chmod : mode:int -> ?op:[ `Add | `Remove | `Set ] -> t -> unit