How to check if directory exist using Swift in Linux
The current version of Foundation on Linux does not have the
method. I target a lot of my Swift code to run on Linux containers. Checking if a directory exists is something
that I need often when handling files.
I created a small helper function in C, which is available on Github.