storefile(ftpcon, file, archive.open('NONVOL/'+file))
AttributeErrorが表示されます:ZipFileインスタンスには属性がありませんopen
しかし、(2.4ではopen()が使用できなかったため)に変更.open
すると、次のようになります。.read
AttributeError:str
オブジェクトに属性がありませんread
の:
ftpcon.storbinary('STOR ' + filename.strip(), file)