Hello!

I've been wondering one thing in Wget for some time now: how does
one retrieve file over ftp when ftp site denies directory listing?

I know the exact filename but because listing is denied I always
get this error:

> Removed `.listing'.
> No matches on pattern `foo.zip'.

This is part of ftp.c:

>  if (action == GLOBALL)
>    {
>      /* No luck.  */
>      /* #### This message SUCKS.  We should see what was the
>         reason that nothing was retrieved.  */
>      logprintf (LOG_VERBOSE, _("No matches on pattern `%s'.\n"), u->file);
>    }
>  else /* GETONE or GETALL */
>    {
>      /* Let's try retrieving it anyway.  */
>      con->st |= ON_YOUR_OWN;
>      res = ftp_loop_internal (u, NULL, con);
>      return res;
>    }

I can't figure out how to get Wget to use that else brach (I've tried
-g argument, both on and off). Is it a bug or feature or is it just
me who is not able to use Wget?

It was easy to make quick and dirty fix (I just removed some lines of
code and compiled it as fget):

>  /* Let's try retrieving it anyway.  */
>  con->st |= ON_YOUR_OWN;
>  res = ftp_loop_internal (u, NULL, con);
>  return res;

After that there is no problem retrieving existing file from ftp site
that denies directory listing.

Any hope for some --nolisting option? It would be great with normal
(= non hidden :) ) sites too, because usually I only retrive one file
and downloading .listing takes more time than downloading the file
itself.

Thanks for excellent utility - Wget is great! 
-- 
                                                   ___.-.___  ________
 [EMAIL PROTECTED]                                 \_______/ (|______/
 [EMAIL PROTECTED]                                   `-'_\\___||_
                                                        )[______.-'

Reply via email to