ftpc_ls

NAME
SYNOPSIS
DESCRIPTION
RETURNS
AUTHOR
LICENSE
VERSION

NAME

ftpc_ls, ftpc_dir - List the contents of a directory on the server.

SYNOPSIS

#include <pthr_ftpc.h>

vector ftpc_ls (ftpc ftpc, pool, const char *pathname);
vector ftpc_dir (ftpc ftpc, pool, const char *pathname);

DESCRIPTION

ftpc_ls and ftpc_dir list the contents of either the current directory (if pathname is NULL) or else another directory pathname.
ftpc_ls issues the command NLST -a, returning a vector of strings giving the name of each file.
ftpc_dir issues the command LIST -a, returning a human-readable list of filenames, similar to issuing the ls -al command in Unix.

RETURNS

0 if successful, -1 if the attempt failed. If a fatal error occurs with the connection, an exception is thrown.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

pthrlib-3.0.3