get_files() will ignore dotfiles now
This commit is contained in:
parent
ec37ff4e75
commit
adf440a9dd
@ -307,7 +307,7 @@ class Pico {
|
|||||||
$array_items = array();
|
$array_items = array();
|
||||||
if($handle = opendir($directory)){
|
if($handle = opendir($directory)){
|
||||||
while(false !== ($file = readdir($handle))){
|
while(false !== ($file = readdir($handle))){
|
||||||
if($file != "." && $file != ".."){
|
if(preg_match("/^(^\.)/", $file) === 0){
|
||||||
if(is_dir($directory. "/" . $file)){
|
if(is_dir($directory. "/" . $file)){
|
||||||
$array_items = array_merge($array_items, $this->get_files($directory. "/" . $file, $ext));
|
$array_items = array_merge($array_items, $this->get_files($directory. "/" . $file, $ext));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user