Mt_self.Make_user_dir_optBuilds a User_dir_opt from an existing User_dir. The first parameter is the parent directory. The second gives the name of the directory to create (also used to create the option name), a possible environment variable name and the help message for the option.
module _ : Frama_c_kernel.Parameter_sig.User_dirmodule _ : sig ... endinclude Frama_c_kernel.Parameter_sig.User_dirval get_dir : ?create_path:bool -> string -> Frama_c_kernel.Filepath.tget_dir ~create_path name tries to get the directory name. The function aborts if:
name exists,Otherwise returns the path, and creates it if create_path is true (it defaults to false). Subdirectories modules can be created with Builder.Make_user_dir and Builder.Make_user_dir_opt.
val get_file : ?create_path:bool -> string -> Frama_c_kernel.Filepath.tget_file ~create_path name tries to get the file name. The function aborts if:
name exists,Otherwise returns the path, and creates the directories that lead to the file if create_path is true (it defaults to false). The file is *not* created by the function.
val set : Frama_c_kernel.Filepath.t -> unitSets the <user-dir> directory (without creating it).
val get : unit -> Frama_c_kernel.Filepath.t