DragonFly On-Line Manual Pages
ftp_remove(3) C Library Calls ftp_remove(3)
NAME
ftp_remove - remove a file or directory on an FTP server
SYNOPSIS
#include <libfget.h>
int ftp_remove(FTP *ftp, char *path);
VERSION
This man page documents version 1.3 of libfget.
DESCRIPTION
The ftp_remove() function removes the file or directory specified by
path on the FTP server associated with ftp.
If path specifies a directory, ftp_remove(path) is the equivalent of
ftp_rmdir(path). If path specifies a file, ftp_remove(path) is the
equivalent of ftp_unlink(path).
RETURN VALUE
The ftp_remove() function returns 0 on success, or -1 on error (and
sets errno).
ERRORS
The ftp_remove() function may fail for any of the errors specified for
the underlying ftp_lstat(3), ftp_rmdir(3), or ftp_unlink(3) library
calls.
SEE ALSO
libfget(3), ftp_rmdir(3), ftp_unlink(3), remove(3)
Feep Networks January 2004 ftp_remove(3)