carta
FtpDir(3)

FtpDir3

Performs a verbose directory.

Usage

int FtpDir(const char *outputfile, const char *path,

Parameters

outputfile

Name of a local file to receive the directory listing.

path

File specification to pass to remote 'ls'.

nControl

A handle returned by FtpConnect().

Overview

Sends a LIST command to the server with the specified path. The response to this is usually a long format directory listing which will be written to the file named in outputfile. If outputfile is specified as NULL, the list will be written to stdout.

Return value

Returns 1 if successful or 0 on error.

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