Ne-Lexa / php-zip

PhpZip is a php-library for extended work with ZIP-archives.
MIT License
491 stars 60 forks source link

解压的时候提示? #64

Open 529834149 opened 4 years ago

529834149 commented 4 years ago

Description

Example

image

//压缩文件夹 $this->zipfile->addDirRecursive($beforepath); // save the archive to a file $this->zipfile->withNewPassword('run1234!@#'); $this->zipfile->saveAsFile($zippath.'/'.$zipname); $this->zipfile->close();

Ne-Lexa commented 4 years ago

Please describe the problem in English.

529834149 commented 4 years ago

Using the expansion pack for encryption and compression is normal, but when decompressing, sometimes prompt file damage, do not know if anyone has met, ask for advice

Ne-Lexa commented 4 years ago

Please attach the damaged file for analysis.

529834149 commented 4 years ago

data_1600047637.zip 这个密码run1234!@#

Ne-Lexa commented 4 years ago

Is this file generated with php-zip library? You must use a slash (/) as a folder separator, not a backslash ().