From: Brian Hartin Date: 2008-05-24T02:51:42+09:00 Subject: Re: File::Separator on win32 Daniel Berger wrote: > Michael Siebert wrote: >> is ALT_SEPARATOR / on *nixes? according to the docs, its \, too. i need a >> portable way without the need to rewrite everything... > > Which docs? Anyway, it's nil on *nix platforms. I'm not sure about > VMS, though. > > There's always RUBY_PLATFORM.match('mswin') :) > > Regards, > > Dan `md #{File.join("c:","foo")}` fails as well. STDERR contains 'The syntax of the command is incorrect'. In other languages, like Java, the path separator constant/method is used to abstract the knowledge of which operating system is in play. Can it not be so in Ruby? -- Posted via http://www.ruby-forum.com/.