ignore all files/directories starting with '.' when zipіng an extension

This commit is contained in:
Uwe Steinmann 2020-06-17 11:17:09 +02:00
parent b97387ecb1
commit fd7cca239a

View File

@ -255,6 +255,9 @@ class SeedDMS_Extension_Mgr {
// Ignore "." and ".." folders
if( in_array(substr($file, strrpos($file, '/')+1), array('.', '..')) )
continue;
// Ignore all files and directories starting with a '.'
if( preg_match('#/\\.#', $file) )
continue;
$file = realpath($file);