function ReadFolderDirectory($dir,$listDir= array()) { $listDir = array(); if($handler = opendir($dir)) { while (($sub = readdir($handler)) !== FALSE) { if ($sub != "." && $sub != ".." && $sub != "Thumb.db") { if(is_file($dir."/".$sub)) { $listDir[] = $sub; } elseif(is_dir($dir."/".$sub)) { $listDir[$sub] = $this->ReadFolderDirectory($dir."/".$sub); } } } closedir($handler); } return $listDir; }
System.IO.Directory
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)