directories icon indicating copy to clipboard operation
directories copied to clipboard

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 Ba...

Results 6 directories issues
Sort by recently updated
recently updated
newest added

I'm compiling this on Windows using DkML (MSVC distribution): ``` #=== ERROR while compiling directories.0.5 ====================================# # context 2.2.0~alpha0~20221228 | win32/x86_64 | conf-withdkml.2 ocaml-system.4.14.0 | pinned(https://github.com/OCamlPro/directories/archive/0.5.tar.gz) # path C:\Users\beckf\AppData\Local\opam\playground\.opam-switch\build\directories.0.5 #...

Is there any reason that the Roaming `%AppData%` is chosen as the `config_dir` in the following https://github.com/OCamlPro/directories/blob/1cf7211f918fa909e5f77c0dfbb059c74071e99b/src/windows/directories.ml#L36-L37 I've commonly seen XDG_CONFIG_HOME mapped to `%LocalAppData%`, like in https://docs.racket-lang.org/basedir/index.html . Either way...

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...

See e.g. [the corresponding issue](https://github.com/dirs-dev/directories-jvm/issues/44) in directories-jvm.

I'm not sure if OS constraint are supported now.

There's an [ugly fallback](https://github.com/OCamlPro/directories/blob/588f101d3ca6efe1cd2b156bdd94ea65702b26a9/src/dune#L11) to the linux backend atm.