smihica / pyminizip

To create a password encrypted zip file in python.
Other
108 stars 38 forks source link

I need help about [compress_multiple]! #33

Open wolfly22 opened 4 years ago

wolfly22 commented 4 years ago

pyminizip.compress_multiple([u'a.txt', 'b.txt'], ['E:\', 'E:\'], "file.zip", "1233", 4) but,I get this: pyminizip.compress_multiple(["a.txt","b.txt"],[r"E:\",r"E:\"],"abc.zip",password,6) OSError: error in opening a.txt for reading

I don't know what's the point![2. src file LIST prefix path (list) or ] Thank you very much!

wolfly22 commented 4 years ago

Error description: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats pyminizip.compress_multiple([u'a.txt','b.txt'],[u'E:/',u'E:/'],"12.zip",password,4) OSError: error in opening a.txt for reading

wolfly22 commented 4 years ago

I can't understand "PY_SSIZE_T_CLEAN "! somebody help me!Thank you!

supermitch commented 4 years ago

@wolfly22 the deprecation warning is unrelated. Ignore that. I get that even when the zip works fine. Your issue is that a.txt is not found. Try using the full path to the file, not just the file name.