APIdock / Ruby
/
Browse About
method

realdirpath

v1_9_2_180 - Show latest stable - Class: Pathname
realdirpath(basedir=nil)
public

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

The last component of the real pathname can be nonexistent.

# File lib/pathname.rb, line 455
  def realdirpath(basedir=nil)
    self.class.new(File.realdirpath(@path, basedir))
  end

Related methods

  • Instance methods
  • +
  • <=>
  • ==
  • ===
  • TO_PATH
  • absolute?
  • ascend
  • atime
  • basename
  • binread
  • blockdev?
  • chardev?
  • children
  • chmod
  • chown
  • cleanpath
  • ctime
  • delete
  • descend
  • directory?
  • dirname
  • each_child
  • each_entry
  • each_filename
  • each_line
  • entries
  • eql?
  • executable?
  • executable_real?
  • exist?
  • expand_path
  • extname
  • file?
  • find
  • fnmatch
  • fnmatch?
  • freeze
  • ftype
  • grpowned?
  • hash
  • inspect
  • join
  • lchmod
  • lchown
  • lstat
  • make_link
  • make_symlink
  • mkdir
  • mkpath
  • mountpoint?
  • mtime
  • open
  • opendir
  • owned?
  • parent
  • pipe?
  • read
  • readable?
  • readable_real?
  • readlines
  • readlink
  • realdirpath
  • realpath
  • relative?
  • relative_path_from
  • rename
  • rmdir
  • rmtree
  • root?
  • setgid?
  • setuid?
  • size
  • size?
  • socket?
  • split
  • stat
  • sticky?
  • sub
  • sub_ext
  • symlink?
  • sysopen
  • taint
  • to_s
  • truncate
  • unlink
  • untaint
  • utime
  • world_readable?
  • world_writable?
  • writable?
  • writable_real?
  • zero?
  • Class methods
  • getwd
  • glob
  • new
  • pwd
  • Private methods
  • privateadd_trailing_separator
  • privatechop_basename
  • privatecleanpath_aggressive
  • privatecleanpath_conservative
  • privatedel_trailing_separator
  • privatehas_trailing_separator?
  • privateplus
  • privateprepend_prefix
  • privatesplit_names
APIdock API Documentation Browser

Track DORA metrics effortlessly with Swarmia.

© 2026 APIdock