]> granicus.if.org Git - python/commit
Solve two annoying problems with ftp URLs for Jack: when repeated
authorGuido van Rossum <guido@python.org>
Sun, 28 Dec 1997 04:21:20 +0000 (04:21 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 28 Dec 1997 04:21:20 +0000 (04:21 +0000)
commitd499004860fc74cd95f40b786133229f1d0550bf
treeb6e2788c12e9f3f795bdbf730046f2ec1227e930
parentadfacf4e2e8562a67b9611b50c252d6cf239da7a
Solve two annoying problems with ftp URLs for Jack: when repeated
retrieving files from the same host and directory, you had to close
the previous instance before opening a new one; and retrieving a
non-existent file would return an empty file.  (The latter fix relies
on maybe an undocumented property of NLST -- NLST of a file returns
just that file, while NLST of a non-existent file returns nothing.  A
side effect, unfortunately, seems to be that now ftp-retrieving an
*empty* directory may fail.  Ah well.)
Lib/urllib.py