realdirpath

File.realdirpath(pathname [, dir_string]) รข real_pathname
Class Public methods

Returns the real (absolute) pathname of pathname in the actual filesystem. The real pathname doesn't contain symlinks or useless dots.

If dir_string is given, it is used as a base directory for interpreting relative pathname instead of the current directory.

The last component of the real pathname can be nonexistent.

doc_ruby_on_rails
2015-04-06 11:33:40
Comments
Leave a Comment

Please login to continue.