Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
URI::FTP#set_path
(::String? v) -> ::String?
set_path(v)
lib/uri/ftp.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/uri/ftp.rb, line 245
def set_path(v)
super("/" + v.sub(/^\//, "%2F"))
end
Private setter for the path of the URI::FTP.