Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Windows/X-plaiform file path manipulation -- how do you deal with it?
Graham Wideman
9/2/2006 2:03:00 AM
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
http://www.ruby-doc.o...
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
3 Answers
Graham Wideman
9/2/2006 2:32:00 AM
0
.... 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...
Daniel Berger
9/2/2006 3:12:00 AM
0
Graham Wideman wrote:
> 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
>
http://www.ruby-doc.o...
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
Graham Wideman
9/2/2006 10:18:00 AM
0
Dan:
Good to know about. Thanks,
Graham
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Windows/X-plaiform file path manipulation -- how do you deal with it?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password