Windows/X-plaiform file path manipulation -- how do you deal

Folks:

Could someone please straighten me out on how the Ruby community deals
with
the simple issues of file names and path manipulation on Windows,
preferably
in a cross platform way?

So far as I can tell, pathname.rb as distributed with 1.8.4 does not
deal
with Windows paths.

(Comments within say it’s unix-only, though the online docs at
RDoc Documentation claim Windows support, but appear to be
extracted from wrong version of pathname.rb).

On the basis that there are many ruby programmers working on Windows and
presumably needing to actually work with files, I’m hesitant to conclude
that this area of functionality isn’t covered somehow.

What gives?

Graham

… so to partly answer myself, it looks like the
at-least-experimentally-working Pathname library is available in the 1.9
distribution, and indeed does what I want.

Leading to the next question posted…

Graham W. wrote:

RDoc Documentation claim Windows support, but appear to be
extracted from wrong version of pathname.rb).

On the basis that there are many ruby programmers working on Windows and
presumably needing to actually work with files, I’m hesitant to conclude
that this area of functionality isn’t covered somehow.

What gives?

Graham

Use pathname2 instead. Available on the RAA.

Regards,

Dan

Dan:

Good to know about. Thanks,

Graham