ftplib_dir

Performs a verbose directory.

SYNOPSIS

#include <ftplib.h>
int ftplib_dir(const char *outputfile, const char *path, netbuf *nbp);

PARAMETERS

outputfile
Name of a local file to receive the directory listing.
path
File specification to pass to remote 'ls'.
nbp
A handle returned by ftplib_connect().

DESCRIPTION

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.

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