Recommended Posts

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 ftp://127.0.0.1/chdir/

--10:17:38-- ftp://127.0.0.1:21/chdir/

=> `127.0.0.1/chdir/.listing'

Connecting to 127.0.0.1:21... 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) - `127.0.0.1/chdir/.listing' saved [159]

Removed `127.0.0.1/chdir/.listing'.

--10:17:38-- ftp://127.0.0.1:21/chdir/

=> `127.0.0.1/chdir/index.html'

==> 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?

Thanks

  • 4 years later...

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

 

EDIT:

Just found this.

wget -rkp -l3 -np -nH --cut-dirs=1

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Lilly-Livered American Media Are Scared
    • Really? Despite the memory price rises, nothing can kill it? I thought something would.
    • I think there will be a 27H1 for actual users of 26H1 The 25h2 supports ARM too : Snapdragon X, Snapdragon X Plus and Snapdragon X Elite
    • Poll: Grand Theft Auto VI price predictions, cast your vote by Pulasthi Ariyasinghe After years of waiting, Rockstar will be solidifying the launch date of Grand Theft Auto VI with the launch of pre-orders next week. While the studio has confirmed a date for this occasion, it is yet to attach a price to the highly anticipated game. So let's see what our readers think it will cost at launch. The Grand Theft Auto VI pre-orders will kick off on June 25 for digital and physical editions. Unless some last-minute changes happen, the release date will be November 19, 2026, across Xbox Series X|S and PlayStation 5. Unfortunately, there's still no information about a PC version from the developer or the publisher Take-Two. Now the question becomes, how much will Grand Theft Auto VI cost at launch? The game is predicted by some analysts to be the biggest launch of an entertainment product ever. With the amount of hype that has been built behind it and with ballooning development costs, Take-Two may price this Grand Theft Auto entry differently from other AAA titles. The current price of a AAA game is $69.99. That norm almost rose to $79.99 before calming down. But with such a massive release, Grand Theft Auto VI may be the game that pushes the boundary again. It's also possible that Take-Two keeps the price relatively low to increase the number of players that jump in early and keep them hooked on Grand Theft Auto Online to spend on microtransactions for years to come. Keep in mind that the below poll is asking for a prediction of the standard edition price, not a deluxe or any other special edition that Take-Two will introduce for additional benefits. Also, there is the chance of the company splitting up the campaign and online portions. If you think that will happen, put your vote on what you think will be the total cost of the two. Poll Poll: How much will Grand Theft Auto VI cost? $59.99 $69.99 $79.99 $89.99 $100 or more Submit Vote If you have a very specific prediction in mind, sound off in the comments below.
  • Recent Achievements

    • Week One Done
      Genuinetonerink- Dubai earned a badge
      Week One Done
    • One Month Later
      Genuinetonerink- Dubai earned a badge
      One Month Later
    • One Year In
      hhgygy earned a badge
      One Year In
    • One Month Later
      AMV earned a badge
      One Month Later
    • Week One Done
      AMV earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      513
    2. 2
      +Edouard
      171
    3. 3
      PsYcHoKiLLa
      82
    4. 4
      Steven P.
      74
    5. 5
      Michael Scrip
      72
  • Tell a friend

    Love Neowin? Tell a friend!