#14 Fix ZopeFTP.py to supress some FTP unix listing style errors

closed
Riaan Booysen
Bug fix (17)
5
2003-08-13
2003-06-06
Sergius Lezhnin
No

ZopeFTP.py patch made with diff
---cut-here---
51c51
< else:
---
> elif len(items) > 7:
---cut-here---

With some FTP daemon on Solaris Boa FTP explorer pops
error message box:
"Could not read: Total 2"
every time it lists directory from the FTP server.
This is because the FTP server prints total number of
entries at the end of listing.
The listed above patch solves this problem by ignoring
lines with short number of entries (like the line:
Total 2).
Line 51 of the ZopeFTP.py should be changed from
"else:" to "elif len(items) > 7:".

Good luck with that exellent project,
Sergius

Discussion

  • Riaan Booysen
    Riaan Booysen
    2003-08-13

    • assigned_to: nobody --> riaan
    • status: open --> closed
     
  • Riaan Booysen
    Riaan Booysen
    2003-08-13

    Logged In: YES
    user_id=438

    Thanks! I forgot about this patch for a while.

    It should be available from 0.2.7.

    Cheers,
    Riaan.