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
realpath(base_dir = Dir.pwd)
Alias for: real_path