package directories
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9a0730b92aef52d04c7b4bbb1afc8aa0b4f65a1d8f171e328094c49aeb3ec889
sha512=b0335b35b4ca3d3b2142aa2810977c975c92b56064dbed9a9c70bc05c7e87d9e72aac5aae518f6ff285e01dbbe846b3950b165cd65833261e45eeafd562f2b26
Description
directories is an OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows. It is inspired by similar libraries for other languages such as directories-jvm. The following conventions are used: XDG Base Directory Specification and xdg-user-dirs on Linux, Known Folders on Windows, Standard Directories on macOS.
Added to opam-repository:
README
directories 
directories is an OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows. It is inspired by similar libraries for other languages such as directories-jvm.
The following conventions are used:
- XDG Base Directory Specification and xdg-user-dirs on Linux
- Known Folders on Windows
- Standard Directories on macOS
On Linux and macOS it has no dependency. On Windows, it depends only on ctypes.
Quickstart
You should depend on directories then :
let () =
let module App_id = struct
let qualifier = "com"
let organization = "YourCompany"
let application = "yourapp"
end in
let module M = Directories.Project_dirs (App_id) in
let option_value = function None -> "None" | Some v -> v in
Format.printf "cache dir = `%s`@." (option_value M.cache_dir);
Format.printf "config dir = `%s`@." (option_value M.config_dir);
Format.printf "data dir = `%s`@." (option_value M.data_dir)For more, have a look at the example folder.
About
Dependencies (4)
Dev Dependencies
None
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building directories with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
This version is not in the latest run; the versions below are.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.7 | n/a | good | good | good | good |
| 0.5 | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure