ftpc_ls, ftpc_dir - List the contents of a directory on the server. |
#include <pthr_ftpc.h> vector ftpc_ls (ftpc ftpc, pool, const char *pathname); vector ftpc_dir (ftpc ftpc, pool, const char *pathname); |
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. |
0 if successful, -1 if the attempt failed. If a fatal error occurs with the connection, an exception is thrown. |
Richard Jones <rich@annexia.org> |
GNU LGPL (see http://www.gnu.org/) |
pthrlib-3.0.3 |