4 FTP: Client Downloading
4.1 Functions
procedure
(ftp-connection? v) → boolean?
v : any/c
procedure
(ftp-establish-connection server port-no user passwd) → ftp-connection? server : string? port-no : (integer-in 0 65535) user : string? passwd : string?
procedure
(ftp-close-connection ftp-conn) → void?
ftp-conn : ftp-connection?
procedure
ftp-conn : ftp-connection? new-dir : string?
procedure
(ftp-directory-list ftp-conn [path])
→
(listof (list/c (one-of/c "-" "d" "l") string? string?)) ftp-conn : ftp-connection? path : (or/c false/c string?) = #f
Each file or directory is represented by a list of three or four 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. The third string is the name of the file or directory. If the item is a file (the first string is "-"), and if the line that the server replied with has a size in the expected place, then a fourth string containing this size is included.
Warning: the FTP protocol has no specification for the reply format, so this information can be unreliable.
procedure
(ftp-make-file-seconds ftp-date) → exact-integer?
ftp-date : string?
Warning: the FTP protocol has no specification for the reply format, so this information can be unreliable.
procedure
(ftp-download-file ftp-conn local-dir file) → void?
ftp-conn : ftp-connection? local-dir : path-string? file : string?
4.2 FTP Unit
ftp@ and ftp^ are deprecated. They exist for backward-compatibility and will likely be removed in the future. New code should use the net/ftp module.
(require net/ftp-unit) |
value
ftp@ : unit?
4.3 FTP Signature
(require net/ftp-sig) |
signature
ftp^ : signature
Includes everything exported by the net/ftp module.