• Guido van Rossum's avatar
    Solve two annoying problems with ftp URLs for Jack: when repeated · d4990048
    Guido van Rossum yazdı
    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.)
    d4990048
urllib.py 24.6 KB