ftpls - generate a ftp directory listing
ftpls ftp://host[:port]/directory
or
ftpls host[:post] /directory
ftpls generates a listing of files and directories in a FTP directory. ftpls by default prints a human readable ascii output, but may also create HTML and machine parsable output.
Number of tries to connect and log in. The default is 1, meaning that ftpls will give up after the first error.
Use PASS as password to login on the ftp server. The default is `anonymous@invalid.example'. Use an empty password to enforce not sending any password.
Use NAME to login on the ftp server. The default is `anonymous'. Use an empty name to force to not log in.
Create HTML index.
Create machine parsable output.
Title text to use on the HTML output.
URL-Prefix to use in listings.
sort alphabetical.
sort reverse alphabetical.
sort youngest first.
sort oldest first.
sort shortest first.
sort longest first.
Add OPTS to LIST command. This allows to pass arbitrary options to the FTP servers LIST command. Note that ftpcopy does not cope well with recursive directory listings.
ftpls \ --html --title "CVS tree index by date" \ --urlprefix ftp://ftp.ohse.de/uwe/cvs-trees/ \ --newest \ ftp://serak.ohse.de/uwe/cvs-trees \ > SOMEWHERE/cvs-trees/index-by-date.html
Uwe Ohse, uwe@ohse.de