Type:
Class
Constants:
DEFAULT_PORT
:
21
A Default port of 21 for URI::FTP
COMPONENT
:
[
:scheme,
:userinfo, :host, :port,
:path, :typecode
].freeze
An Array of the available components for URI::FTP
TYPECODE
:
['a', 'i', 'd'].freeze
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='.freeze
Typecode prefix
';type='
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