Module B0_driver.B0_dir

module B0_dir: sig .. end
b0 directory operations


B0 directory


type t 
The type for values representing a B0 directory. The directory itself may not exist.
val v : b0_dir:B0.Fpath.t -> t
v ~b0_dir is a b0 directory located at b0_dir which might not exist.
val exists : t -> bool
exists d is true iff (dir d) exists.
val must_exist : t -> unit B0.result
must_exist d is Ok () if (dir d) exists and an error otherwise.
val dir : t -> B0.Fpath.t
dir d is d's directory.
val variant_dir : t -> B0.Fpath.t
variant_dir d is the directory where variants are located.

Defaults

Setting defaults fails if the directory doesn't exist.

val default_variant_name : t -> string option
default_variant_name d is d's default variant name (if any).
val set_default_variant_name : t -> string option -> unit B0.result
set_default_variant_name d n sets the default variant name to n (if any).
val default_variant_scheme_name : t -> string option
default_variant_scheme_name d is d's default variant scheme name (if any).
val set_default_variant_scheme_name : t -> string option -> unit B0.result
set_default_variant_scheme_name d n sets the default variant name to n (if any).