ftprmd()

The ftprmd() call removes a directory on a target machine.

Syntax

#include <ftpapi.h>

int ftprmd(host, userid, passwd, acct, dir)
char *host;
char *userid;
char *passwd;
char *acct;
char *dir;

Parameters

host

userid passwd acct dir

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=ftprmd("conypc","jason","ehgr1",NULL,"mydir");

The directory, mydir, is removed on the host, conypc, using the user ID, jason, and the password, ehgr1.


[Back: ftprestart()]
[Next: ftpsite()]