[Ironruby-core] Pathname

Sanghyeon Seo sanxiyn at gmail.com
Tue Oct 23 22:41:07 EDT 2007

John Lam wrote:
> after looking at your changes to the Rakefile, most of them fall in the bucket of using File.join() to concatenate pathname elements rather than using a canonical delimiter '\'. I was under the impression that the pathname2 library would do the correct thing under Linux and convert the '\' to '/'.

I think the intended way to use the library is not to use delimiter at all.

irb(main):001:0> require 'pathname2'
=> true
irb(main):002:0> root = Pathname.new('root')
=> "root"
irb(main):003:0> root + 'subdir' # not '\subdir'
=> "root/subdir"

Seo Sanghyeon

More information about the Ironruby-core mailing list