PHP brings one to the directory with addEmptyDir () and allows to delete an entry with deleteName () is. But delete does not work on directories (empty or not) is there any way to delete empty folders in a zip file (prepaid build is PHP functionality)?
If you have to add / to directory names, Works:
& lt ;? Php $ zip = new ziparchive; If ($ zip-> open ('test.zip') === true) {$ zip- & gt; DeleteName ('testDir /'); $ Zip- & gt; near (); }? & Gt;
Then, testDir / versus testDir ....
Comments
Post a Comment