ftplib_append

Append local file to remote one.

SYNOPSIS

#include <ftplib.h>
int ftplib_append(const char *localfile, const char *path, char mode, netbuf *nbp)

PARAMETERS

localfile
Specifies the local file to be transfered to the server.
path
Specifies the name to be given to the file on the remote server.
mode
The FTP transfer mode as FTPLIB_ASCII or FTPLIB_BINARY.
nbp
A handle to FTP control connection returned by ftplib_connect().

DESCRIPTION

ftplib_append() will either uploads or restart uploading local file localfile to the file specified by path on remote server. If the file path exist on remote server, ftplib_append() will inspect its size and restart uploading what is left from local file.

RETURN VALUE

Returns 1 if the file was uploaded succesfully or already completely uploaded. Returns 0 on error.

$Id: ftplib_append.html,v 1.1 2002/12/02 03:12:51 te Exp $