示例#1
0
 /**
  * Create index.html files
  */
 function createIndex($path)
 {
     // create index.html in the path
     DMInstallHelper::_createIndexFile($path);
     if (!file_exists($path)) {
         return false;
     }
     // create index.html in subdirs
     $handle = opendir($path);
     while ($file = readdir($handle)) {
         if ($file != '.' and $file != '..') {
             $dir = $path . DS . $file;
             if (is_dir($dir)) {
                 DMInstallHelper::createIndex($dir);
             }
         }
     }
 }