Merge pull request #1 from cochrandv/master

get_files() will ignore dotfiles now
This commit is contained in:
William Duyck 2013-07-20 17:35:35 -07:00
commit 08d3829fe6

View file

@ -307,7 +307,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 {
@ -336,4 +336,4 @@ class Pico {
}
?>
?>