1
storefile(ftpcon, file, archive.open('NONVOL/'+file))

AttributeErrorが表示されます:ZipFileインスタンスには属性がありませんopen

しかし、(2.4ではopen()が使用できなかったため)に変更.openすると、次のようになります。.read

AttributeError:strオブジェクトに属性がありませんread

の:

ftpcon.storbinary('STOR ' + filename.strip(), file)
4

0 に答える 0