ftpls()

The ftpls() call gets directory information in short format from a remote host and writes it to a local file.

Syntax

#include <ftpapi.h>

int ftpls(host, userid, passwd, acct, local, pattern)
char *host;
char *userid;
char *passwd;
char *acct;
char *local;
char *pattern;

Parameters

host

userid passwd acct local pattern

Return Values

The value 0 indicates success; the value -1 indicates an error. The value of ftperrno indicates the specific error. See Return Values for a description of the return codes.

Examples

int rc;rc=ftpls("conypc","jason","ehgr1",NULL,"conypc.dir","*.c");

ftpls() gets a directory of *.c files in short format and stores the names in the local file conypc.dir.


[Back: ftplogoff()]
[Next: ftpmkd()]