smihica / pyminizip

To create a password encrypted zip file in python.
Other
106 stars 37 forks source link

compress_multiple doesn't like the passed arguments #35

Closed ameasere closed 3 years ago

ameasere commented 3 years ago

I am writing my coursework (a digital Fort Knox) and I was using PyMinizip to encrypt a ZIP archive.

Source code: https://pastebin.com/PcpvSUZ3

For some reason, the arguments passed aren't working. This is the output:

pyminizip.compress(filearray2, zipName, pforzip[0], 5) ValueError: expected arguments are compress(src, srcpath, dst, pass, level)

filearray2: ['seamless.txt'] zipName: zip.zip pforzip[0]: user0

Process finished with exit code 0

I specified the file, zip destination name and the password and it says it is still invalid...

Help?!?!