We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc73953 commit 0fa2312Copy full SHA for 0fa2312
src/Phing/Task/Ext/Archive/ZipTask.php
@@ -306,6 +306,9 @@ private function addFilesetsToArchive($zip)
306
if ($f->isDirectory()) {
307
if ($pathInZip != '.') {
308
$zip->addEmptyDir($pathInZip);
309
+ $dirAttrName = $pathInZip . '/';
310
+ $dirAttrs = (int) fileperms($f->getPath()) << 16;
311
+ $zip->setExternalAttributesName($dirAttrName, \ZipArchive::OPSYS_UNIX, $dirAttrs);
312
}
313
} else {
314
$zip->addFile($f->getAbsolutePath(), $pathInZip);
0 commit comments