in reply to FTP Get Directory Tree Only
I used wget with a long long list of "rejected" files:
(the actual code was all on one line )wget -R htm,txt,inc,ram,css,asx,jpg,gif,html,doc,xml,pdf,mp3,log,rtf,[etc] -r -nH --level=0 --force-directories ftp://<username>:<password>@<server>/<path>/
and then I used File::Find locally to go through and remove any files which accidentally made it through.
Of course any more interesting perl solutions would still be welcome. This could happen again...
($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: FTP Get Directory Tree Only
by roboticus (Chancellor) on Aug 15, 2006 at 12:24 UTC |