mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 14:11:35 +00:00
ignore all files/directories starting with '.' when zipіng an extension
This commit is contained in:
parent
b97387ecb1
commit
fd7cca239a
|
@ -255,6 +255,9 @@ class SeedDMS_Extension_Mgr {
|
||||||
// Ignore "." and ".." folders
|
// Ignore "." and ".." folders
|
||||||
if( in_array(substr($file, strrpos($file, '/')+1), array('.', '..')) )
|
if( in_array(substr($file, strrpos($file, '/')+1), array('.', '..')) )
|
||||||
continue;
|
continue;
|
||||||
|
// Ignore all files and directories starting with a '.'
|
||||||
|
if( preg_match('#/\\.#', $file) )
|
||||||
|
continue;
|
||||||
|
|
||||||
$file = realpath($file);
|
$file = realpath($file);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user