From: James Byrne Date: 2010-09-15T03:02:52+09:00 Subject: Re: How does one get an absolute absolute file path? Glenn Jackman wrote: > At 2010-09-14 11:35AM, "James Byrne" wrote: >> >> My question is: Is there any way to obtain the absolute path for >> the actual file system path to the script ignoring the logical link. > By "logical link" I assume you mean symbolic link -- I've never heard of > a logical link. You are correct, I was writing of symbolic links. > > You want the pathname package: > > require 'pathname' > path = Pathname.new(__FILE__) > p path.realpath Thank you. This seems to provide the answer that I sought. -- Posted via http://www.ruby-forum.com/.