Jump to content


Wget just download directory list form the FTP

  • Please log in to reply
2 replies to this topic

#1 lotuis



  • Joined: 10-September 04
  • Location: Mars

Posted 03 April 2009 - 02:20

Hi All,
When i try to use Wget to download all files under a directory of FTP, i found that only the list of directory was download. The files under the directory were not downloaded at all.

Here is the log.

D:\Builds>wget -r
=> `'
Connecting to connected!
Logging in as anonymous ... Logged in!
==> TYPE I ... done. ==> CWD chdir ... done.
==> PORT ... done. ==> LIST ... done.

0K ->

10:17:38 (155.27 KB/s) - `' saved [159]

Removed `'.
=> `'
==> CWD not required.
==> PORT ... done. ==> RETR ...
No such file `'.

FINISHED --10:17:38--
Downloaded: 0 bytes in 0 files

I have copied 5 files to FTP, and none of them could be downloaded by Wget.

Does some one know how to resolve it?


#2 bvrider1


    Resident One Post Wonder

  • Joined: 19-December 13

Posted 19 December 2013 - 02:54

Sorry for bringing up a dead post but I would like to know what the outcome was on this issue. 



#3 +LambdaLambdaLambdaFn



  • Joined: 13-November 13

Posted 21 December 2013 - 18:44

You can do this several ways -- depends what you're trying to do.


The easiest way is to use scp instead of wget.


You could also use a bash script with all of the filenames in a textfile that you want to download. 


for f in `cat textfile`; do wget $f; done



Just found this.

wget -rkp -l3 -np -nH --cut-dirs=1 http://web.psung.name/emacstips/

Click here to login or here to register to remove this ad, it's free!