Hi,

With reconnections for FTP download I think I found a problem.
With the first connection wget gives a CWD command to the FTP server
directly after logging in and sometimes (but not always e.g. if file
not present in .listing (?) also a CWD before the actual RETR command.
After the Removed .listing when the actual retrieval starts.

However, with the second try indeed the file is not there because the
CWD command is not issued now! E.g. this happens with timestamping
(wget -N)

--12:36:41--  ftp://server/pub/sub/filename
  (try: 2) => `filename'
Connecting to server... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD not required.
==> PASV ... done.    ==> REST 116260540 ... done.
==> RETR filename ...
No such file `filename'.

Actually the return status of the above wget -N is 0. This is not OK,
since the file was not downloaded correctly.

I checked the downloading without the -N option and then the "try: 2" works!
The difference is that now CWD /pub/sub IS send (and a SIZE filename
command is given too).

Indeed "No such file" in the server root of course since the CWD was required.
I would appreciate suggestions for a work-around / fix here with the
use of time-stamping (wget -N)

Regards,
Bernd

Reply via email to