After much searching, I can't seem to find any definitive way to
determine which path separator to use. Obviously, it's ":" on nix, and
";" on windows ... so what's the best way to determine what OS I'm
running on?
I've got a functional hack in place. But ... well, it's a hack.
Essentially, if my docroot begins with a "/" I just assume it's nix. So
far, it works. But I can't imagine I'm the first person to need this.
usenet searches haven't revealed much on the topic.
--cd
determine which path separator to use. Obviously, it's ":" on nix, and
";" on windows ... so what's the best way to determine what OS I'm
running on?
I've got a functional hack in place. But ... well, it's a hack.
Essentially, if my docroot begins with a "/" I just assume it's nix. So
far, it works. But I can't imagine I'm the first person to need this.
usenet searches haven't revealed much on the topic.
--cd
Comment