How do I get the current OS directory separator? I guess it would usually be / but maybe : on mac and \ on windows not sure.
I wrote a settings module that accepts the name of a config file. Say I pass in somedir/foo.cfg. After I open the file and am reading the setting it may include another file. Id like that to be relative to somedir. I use Parent.NativePath to get somedir. I tried it on macos x and linix. On one of the systems it returns a trailing / on the other not. So I need to know the directory separator to know what to check for or add to the end before appending the new include.