method
realpath
realpath(p1 = v1)
public
Returns the real (absolute) pathname of self in the actual filesystem not containing symlinks or useless dots.
All components of the pathname must exist when this method is called.
Register or
log in
to add new notes.
Mange -
November 7, 2010
0 thanks
Will raise error on broken symlink
This method will raise Errno::ENOENT on a broken symlink. You should probably rescue it every time you call this method.