Ilmari Heikkinen
12/25/2004 5:56:00 AM
Hi,
On 25.12.2004, at 06:33, David Garamond wrote:
> Pathname.new(p).basename.to_s
> Pathname.new(p).dirname.to_s
File.basename(p)
File.dirname(p)
> Pathname.new(p).realpath.to_s
File.expand_path(p), though it doesn't follow links. The #realpath
implementation in pathname.rb does the resolving by itself, so it seems
you have to make your own function :I
-Ilmari