Usually, to check for a directory, you would use $zipArchive->locateName( "dirName" );
but while the zipfile is being created, this does not work. Is there a way to check the zip file during creation for directories?
Does not work:
$zip = new ZipArchive();
$zip->open( $path, ZIPARCHIVE::CREATE );
//Returns false even if already created
if ( $this->locateName( $directory ) === false ) ...
$this->statName(...)
also returns false;