OS specific PATH separator in Julia

Viewed 160

I couldn't find whether Julia provides the OS specific char to separate PATH-like strings, such as PATH=c:\windows\systems32;c:\windows;... and similar environment variables in Linux. OS specific because Windows is using ";" and Linux ":". I neither could find a helper function that does the splitting already and just not exposing the separator char. But couldn't find that either.

It's easy enough to define these myself, I was only surprised not to find them.

thanks lot for your help

1 Answers

No, there isn't a path list separator by default. What you can do is

Sys.iswindows() ? ';' : ':'
Related