Merge pull request #31 from cochrandv/master
Make get_files ignore dotfiles.
This commit is contained in:
commit
41bfe9ab49
1 changed files with 2 additions and 2 deletions
|
@ -314,7 +314,7 @@ class Pico {
|
|||
$array_items = array();
|
||||
if($handle = opendir($directory)){
|
||||
while(false !== ($file = readdir($handle))){
|
||||
if($file != "." && $file != ".."){
|
||||
if(preg_match("/^(^\.)/", $file) === 0){
|
||||
if(is_dir($directory. "/" . $file)){
|
||||
$array_items = array_merge($array_items, $this->get_files($directory. "/" . $file, $ext));
|
||||
} else {
|
||||
|
@ -343,4 +343,4 @@ class Pico {
|
|||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue