From: Marc-Andre Lafortune Date: 2010-03-30T04:39:31+09:00 Subject: [ruby-core:29117] Re: File.join is always forward slash? Hi, Not sure if this answers your question, but: File.join('a', 'b') == File.join('a/', 'b') == File.join('a/', '/b') It will also convert non-strings to paths (with "to_path", ...) On Mon, Mar 29, 2010 at 3:33 PM, Roger Pack wrote: > I've noticed this in windows: > >>> File.join('a', 'b') > => "a/b" > > Which brings up this question in my mind...if it is always a forward > slash (on windows and Linux), then why does File.join exist (since its > purpose is to join paths in a platform dependent way, but it appears > to always just do it one way)? > Just some feedback on it. �It confuses more than just myself. > Thanks. > -rp > >