示例#1
0
 /**
  * Scans folder and adds all folders to array.
  *
  * @param string $path folder path
  * @return array founded folders in array
  */
 function get_folders($path)
 {
     $folders = gdFunctionsGDSW::scan_dir($path);
     $import = array();
     foreach ($folders as $folder) {
         if (substr($folder, 0, 1) != ".") {
             if (is_dir($path . $folder . "/")) {
                 $import[] = $folder;
             }
         }
     }
     return $import;
 }