I am trying to port an existing OCaml codebase that uses a bit of the OCaml Unix module, specifically Unix.stat, Unix.getcwd, Unix.chdir and Unix.mkdir. For getcwd I’ve found Node.Process.cwd, but I cannot seem to find an equivalent for stat nor chdir nor mkdir (though I found Node.Fs with some file creation support, but not directories). Perhaps I need to call out to external Node functions? (Unfortunately, I know very little node.)
Any pointers (heh) would be appreciated!