module Filepath::FilesystemInfo
Public Instance Methods
absolute_path(base_dir = Dir.pwd)
click to toggle source
# File lib/filepath/filepath.rb, line 827 def absolute_path(base_dir = Dir.pwd) # FIXME: rename to `#absolute`? if self.absolute? return self end return base_dir.as_path / self end
real_path(base_dir = Dir.pwd)
click to toggle source
# File lib/filepath/filepath.rb, line 835 def real_path(base_dir = Dir.pwd) path = absolute_path(base_dir) return path.resolve_link end
Also aliased as: realpath
resolve_link()
click to toggle source
# File lib/filepath/filepath.rb, line 843 def resolve_link return File.readlink(self).as_path end