3 FTP: Client Downloading
utilities for FTP client operations.
The library was written by Micah Flatt.
Establishes an FTP connection with the given server using the
supplied username and password.
The username and password strings are encoded to bytes using the
current locale’s encoding.
Closes an FTP connection.
Changes the current directory on the FTP server to new-dir.
The new-dir argument is not interpreted at all, but simply
passed on to the server (encoded using the current locale’s
encoding); it must not contain a newline.
Returns a list of files and directories in the current directory of
the server, assuming that the server provides directory information in
the quasi-standard Unix format.
Each file or directory is represented by a list of three strings. The
first string is either "-", "d", or "l",
depending on whether the items is a file, directory, or link,
respectively. The second item is the file’s date; to convert this
value to seconds consistent with file-seconds, pass the date
string to ftp-make-file-seconds, below. The third string is
the name of the file or directory.
All strings are decoded from bytes using the current locale’s
Downloads file from the server’s current directory and puts
it in local-dir using the same name. If the file already
exists in the local directory, it is replaced, but only after the
transfer succeeds (i.e., the file is first downloaded to a temporary
file, then moved into place on success).
3.2 FTP Unit
Imports nothing, exports ftp^
3.3 FTP Signature
Includes everything exported by the net/ftp module.