Posix.ProcEnv.uname() will give you various strings which will help distinguish between Unix-like systems. ... OS.Path.joinDirFile will effectively tell you the directory separator. e.g on Linux: OS.Path.joinDirFile{dir="a", file="b"}; val it = "a/b": string
on Windows:
OS.Path.joinDirFile{dir="a", file="b"};
val it = "a\b": string
Thanks! That's a good place to start.
This is off the top of my head. There may be other ways of doing what you want depending on exactly what you're trying to do.
Just a thought that popped up in my mind while working on my path library. The OS.Path structure is portable enough, but just in case I need it later.