From: "Adam P. Jenkins" Date: 2005-11-19T10:52:19+09:00 Subject: Re: File::Spec equivalent? Berger, Daniel wrote: >>-----Original Message----- >>From: Mark J.Reed [mailto:mreed@thereeds.org] >>Sent: Wednesday, August 10, 2005 2:01 PM >>To: ruby-talk ML >>Subject: Re: File::Spec equivalent? >> >> >>What I'm specificalliy looking for is a version of >>File.join() that will join components with backslashes >>instead of forward slashes on Windows... > > > See pathname2, on the RAA. > > Regards, > > Dan Isn't this what File.join is supposed to do? I haven't tried Ruby on Windows, but the documentation for File.join in Pickaxe is: "Returns a new string formed by joining the strings using File::SEPARATOR." Presumably File::SEPARATOR is defined as backslash on Windows and forward-slash on *nix machines.