method
realpath
v1_9_1_378 -
Show latest stable
- Class:
Pathname
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.
1Note
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.