Within OCaml toplevel I am trying to print the current directory.
i.e.
# Filename.current_dir_name;;
which returns
- : string = "."
which is not very useful.
What is the toplevel command needed to display the full path of the current directory?
Many system calls can be done via sys
In your case, Sys.getcwd();;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With