> -----Original Message----- > From: list-bounce / example.com > [mailto:list-bounce / example.com] On Behalf Of Mirek Rusin > Sent: Tuesday, April 04, 2006 3:03 AM > To: ruby-talk ML > Subject: Pathname bug on Windows box? > > --- test.rb --- > require 'pathname' > puts Pathname.new('.').realpath > --- test.rb --- > > always produces: > > c:/ruby/lib/ruby/1.8/pathname.rb:341:in `lstat': Invalid > argument - /c: > (Errno::EINVAL) > from c:/ruby/lib/ruby/1.8/pathname.rb:341:in `realpath' > from test.rb:2 > > any ideas? seems like Pathname doesn't support windows at all? Use pathname2 instead: C:\eclipse\workspace>pwd C:\eclipse\workspace C:\eclipse\workspace>irb irb(main):001:0> require 'pathname2' => true irb(main):002:0> Pathname.new('.').realpath => "C:\\eclipse\\workspace" Regards, Dan