Let's say that I want to download a bunch of files from a FTP directory recursively. I perceive the FTP is stalling the transfer once in a while so I set a read timeout with unlimited retries. I use the following command line:
wget -r -l1 -nd -t0 --read-timeout=10 'ftp://ftp.scene.org/pub/parties/2006/assembly06/assemblytv/' Now, when a read timeout occurs, Wget will of course retry. However, for some reason, it seems that it does not change to the correct directory on resume, resulting to that the partial file is not found (a full path name is not used with RETR) and it will be skipped. Wget itself even says "CWD not required". But shouldn't the directory be changed? Wget version is 1.10.2. In the end is a log what gets printed when the bug occurs. --20:22:54-- ftp://ftp.scene.org/pub/parties/2006/assembly06/assemblytv/ => `.listing' Resolving ftp.scene.org... 145.24.145.100 Connecting to ftp.scene.org|145.24.145.100|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD /pub/parties/2006/assembly06/assemblytv ... done. ==> PASV ... done. ==> LIST ... done. [ <=> ] 3,980 --.--K/s 20:22:59 (53.42 KB/s) - `.listing' saved [3980] Removed `.listing'. --20:22:59-- ftp://ftp.scene.org/pub/parties/2006/assembly06/assemblytv/101_gaming_gamelab_xvid_896kbps.avi => `101_gaming_gamelab_xvid_896kbps.avi' ==> CWD /pub/parties/2006/assembly06/assemblytv ... done. ==> PASV ... done. ==> RETR 101_gaming_gamelab_xvid_896kbps.avi ... done. Length: 38,659,120 (37M) 1% [ ] 685,368 --.--K/s ETA 12:03 20:23:13 (49.34 KB/s) - Data connection: Connection timed out; Control connection closed. Retrying. --20:23:24-- ftp://ftp.scene.org/pub/parties/2006/assembly06/assemblytv/101_gaming_gamelab_xvid_896kbps.avi (try: 2) => `101_gaming_gamelab_xvid_896kbps.avi' Connecting to ftp.scene.org|145.24.145.100|:21... connected. Logging in as anonymous ... Logged in! ==> SYST ... done. ==> PWD ... done. ==> TYPE I ... done. ==> CWD not required. ==> PASV ... done. ==> REST 685368 ... done. ==> RETR 101_gaming_gamelab_xvid_896kbps.avi ... No such file `101_gaming_gamelab_xvid_896kbps.avi'. --20:23:25-- ftp://ftp.scene.org/pub/parties/2006/assembly06/assemblytv/107_gallup_part1_xvid_896kbps.avi => `107_gallup_part1_xvid_896kbps.avi' ==> CWD /pub/parties/2006/assembly06/assemblytv ... done. ==> PASV ... done. ==> RETR 107_gallup_part1_xvid_896kbps.avi ... done. Length: 39,854,016 (38M) 1% [ ] 640,224 --.--K/s ETA 13:22
