From: Massimiliano Mirra Date: 2002-03-21T03:09:43+09:00 Subject: Re: Guidelines for cross-platform development? On Wed, Mar 20, 2002 at 10:47:38AM -0600, Lyle Johnson wrote: > Sadly, even File.join() doesn't do the right thing on Windows: > > irb(main):001:0> File.join('C:\src', 'ruby') > "C:\\src/ruby" Hmmm, that's odd. ------------------------------------------------------------- File::join File.join( [aString]+> ) -> fileName ------------------------------------------------------------------------ Returns a new string formed by joining the strings using File::SEPARATOR (see Table 22.2 on page 308). File.join("usr", "mail", "gumby") #=> "usr/mail/gumby" Does File.join('src', 'ruby') return a wrong path as well? What is the falue of File::SEPARATOR? I assumed it was '\' under Windows. Massimiliano