method
realpath
realpath()
public
Returns a real (absolute) pathname of self in the actual filesystem. The real pathname doesn’t contain symlinks or useless dots.
No arguments should be given; the old behaviour is obsoleted.
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.