.\" This manual page was generated from the file FtpDir.html. .TH FtpDir 3 "06 November 1997" FTPlib .SH NAME FtpDir \- Performs a verbose directory. .SH "SYNOPSIS" .B "#include " .br .sp .BI "int FtpDir(const char *" outputfile ", const char *" path ", " .RS .BI "netbuf *" nControl ");" .SH "PARAMETERS" .TP .B "outputfile" Name of a local file to receive the directory listing. .TP .B "path" File specification to pass to remote 'ls'. .TP .B "nControl" A handle returned by FtpConnect(). .SH "DESCRIPTION" .LP 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. .SH "RETURN VALUE" .LP Returns 1 if successful or 0 on error.