FtpSize(3)

FtpSize3

Determine size of remote file.

Usage

#include <ftplib.h>

int FtpSize(char *path, int *size, netbuf *nControl);

Parameters

path

A pointer to a buffer where the result should be returned.

size

A pointer to an int where the size will be returned.

nControl

A handle returned by FtpConnect().

Overview

FtpSize() 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 (FtpOpen()with typ=FTPLIB_FILE_READ).

Releases

Unchanged in 9 releases since Debian 2.1 (Slink).

  1. 2.1–8

From ftplib-dev 3.1-1-9 in Debian 8 (Jessie). Parsed by carta from the page's man source.