ftplib_size

Determine size of remote file.

SYNOPSIS

#include <ftplib.h>
int ftplib_size(char *path, size_t *size, netbuf *nbp);

PARAMETERS

path
A pointer to a buffer where the result should be returned.
size
A pointer to size_t object where the size will be returned.
nbp
A handle returned by ftplib_connect().

DESCRIPTION

ftplib_size() attempts to determine the size of a remote file.

RETURN VALUE

If a good response is received and the size is successfully parsed out of the result, 1 is returned. Otherwise, 0 is returned.

Some servers may not support the SIZE command. If this request fails, the size may be available in the response to a RETR (ftplib_open() with typ=FTPLIB_FILE_READ).

$Id: ftplib_size.html,v 1.1 2002/12/02 03:12:52 te Exp $