Hi,
We are pleased to present directories, which 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.
You will find more information here: https://github.com/OCamlPro/directories