A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ocaml/ocaml/issues/11829 below:

`Sys.readdir` on MingW Windows disagrees with Linux behavior · Issue #11829 · ocaml/ocaml · GitHub

While I wrote multicore tests of Sys module that run on Linux, macOS, and Windows CI,
I discovered that Sys.readdir doesn't behave the same on Linux or macOS as on MingW Windows.

Running the command on a Windows OCaml top-level using OCaml 5.0.0:

# Sys.readdir "non_existant_path";;
- : string array = [||]

We get back a string array empty instead of raising a Sys.error complaining of an unfound directory.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4