Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val home_dir : t -> string
The user's home directory. Uses $USERPROFILE
on Windows, $HOME
otherwise.
val config_dir : t -> string
The directory where the application should read/write config files.
val data_dir : t -> string
The directory where the application should read/write data files.
val cache_dir : t -> string
The directory where the application should read/write cached files.
val state_dir : t -> string
The directory where the application should read/write state files.
val runtime_dir : t -> string option
The directory where the application should store socket files.
val create : ?win32:bool -> env:(string -> string option) -> unit -> t
Constructor of type t
. ~win32
(default: Sys.win32
) determines whether to use Win32-specific APIs. ~env
is the function to get environment variables, typically Sys.getenv_opt
.