This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Remove unncessary NLST from ftp transfers
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, chriscog, jjlee
Priority: normal Keywords: patch

Created on 2004-10-12 23:05 by chriscog, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
urllib-remove-nlst.patch chriscog, 2004-10-12 23:05 Patch to remove NLST from FTP transfers in urllib.py
Messages (3)
msg47069 - (view) Author: Chris Cogdon (chriscog) * Date: 2004-10-12 23:05
Using urllib (or urllib2) to open FTP URLs will attempt
a 'nlst' (directory listing) before retrieving the
file. Some FTP servers block directory listings, but
allow 'getting' files just fine.

Having urllib do a NLST before retriving files is
totally unnecessary, and will fail given the FTP server
mentioned above. If a file is not 'gettable', which is
what the probable intention of NLST is, it will fail in
the retrieve process.

This patch removes the NLST from urllib. As a bonus,
this makes FTP transfers faster.
msg47070 - (view) Author: John J Lee (jjlee) Date: 2005-05-19 20:49
Logged In: YES 
user_id=261020

Looks reasonable to me.
msg47071 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2006-12-22 19:24
This fix seems to have been applied in rev. 45819.
History
Date User Action Args
2022-04-11 14:56:07adminsetgithub: 41010
2004-10-12 23:05:10chriscogcreate