End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
FileUtils#getwd
getwd
lib/fileutils.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/fileutils.rb, line 199
def pwd
Dir.pwd
end
Alias of #pwd
Returns a string containing the path to the current directory:
Example
FileUtils.pwd # => "/rdoc/fileutils"
FileUtils.getwd is an alias for FileUtils.pwd.
Related: FileUtils.cd.