[Patches] [ python-Patches-1045783 ] Remove unncessary NLST from
ftp transfers
SourceForge.net
noreply at sourceforge.net
Wed Oct 13 01:05:12 CEST 2004
Patches item #1045783, was opened at 2004-10-12 23:05
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1045783&group_id=5470
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Chris Cogdon (chriscog)
Assigned to: Nobody/Anonymous (nobody)
Summary: Remove unncessary NLST from ftp transfers
Initial Comment:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1045783&group_id=5470
More information about the Patches
mailing list