Hi,

Not sure if this answers your question, but:

    File.join('a', 'b') =3D=3D  File.join('a/', 'b') =3D=3D  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 <rogerdpack2 / gmail.com> wrote:
> I've noticed this in windows:
>
>>> File.join('a', 'b')
> =3D> "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. =A0It confuses more than just myself.
> Thanks.
> -rp
>
>