AttributeError: ZipFile instance has no attribute 'open' in python 2.4 -
storefile(ftpcon, file, archive.open('nonvol/'+file))
gives me attributeerror: zipfile instance has no attribute open
but when change .open
.read
(since open() not available in 2.4) get:
attributeerror: str
object has no attribute read
in:
ftpcon.storbinary('stor ' + filename.strip(), file)
Comments
Post a Comment