Skip to content
On this page

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class · Ruby 3.1

URI::FTP

< URI::Generic include OpenURI::OpenRead 6 instance methods 2 class methods

FTP URI syntax is defined by RFC1738 section 3.2.

This class will be redesigned because of difference of implementations; the structure of its path. draft-hoffman-ftp-uri-04 is a draft but it is a good summary about the de facto spec. tools.ietf.org/html/draft-hoffman-ftp-uri-04

Class methods 2

Instance methods 6

Constants

An Array of the available components for URI::FTP.

A Default port of 21 for URI::FTP.

Typecode is “a”, “i”, or “d”.

  • “a” indicates a text file (the FTP command was ASCII)

  • “i” indicates a binary file (FTP command IMAGE)

  • “d” indicates the contents of a directory should be displayed

Typecode prefix “;type=”.

Attributes
Read

typecode accessor.

See URI::FTP::COMPONENT.