directories is an OCaml library that provides configuration, cache and data paths (and more!) following the suitable conventions on Linux, macOS and Windows. The following conventions are used: XDG Base Directory Specification and xdg-user-dirs on Linux, Known Folders on Windows, Standard Directories on macOS.
On Windows, this package depends on Ctypes. A small C binding would be enough to replace its use (only two functions are needed).
In general, it is a pity that this small ligthweight library depends on another library (ctypes) which is several times its size (even if the dependency is only compile-time).
On Windows, this package depends on Ctypes. A small C binding would be enough to replace its use (only two functions are needed).
In general, it is a pity that this small ligthweight library depends on another library (ctypes) which is several times its size (even if the dependency is only compile-time).