[ftputil] ftputil 2.4 with python 2.6.1

Stefan Schwarzer sschwarzer at sschwarzer.net
Fri Apr 10 12:16:03 CEST 2009


Hello all,

On 2009-04-09 07:09, Stefan Schwarzer wrote:
> I've entered the issue at
> http://ftputil.sschwarzer.net/trac/ticket/32
> 
> You can edit it if you log in as user ftputiluser with password
> ftputil (this is for spam prevention).

Please continue working on the bug report at the URL above. Until
now, there have been some additions but no fix yet at the time I
send this mail.

For now, the safest way to avoid the traceback is to disable the
cache on Windows directly after the connection by coding
something like

    import sys

    host = ftputil.FTPHost(server, user, password)
    if sys.platform == 'win32':
        host.stat_cache.disable()

    ...

    host.close()

Because of the possible performance drawbacks of disabling the
cache, you might prefer to use other workarounds for your
specific code.

I'll notify you if I know more of the nature of the bug and thus
know a fix or at least more specific workarounds which can be
included in ftputil.

Happy Easter days! :-)

Best regards,
Stefan


More information about the ftputil mailing list