I'm wondering if it's possible to remove a parent directory using PCLZip while the archive is loaded; without extracting it first and recompiling it.
I can remove the parent directory in the archive using:
$zip->delete(PCLZIP_OPT_BY_INDEX, '0');
And the zip listContent seems to show the parent directory removed
but when I browse the loaded archive the child files and folders are still hosted in the parent directory. I believe this is because their structure definitions still contain the parent directory.