|
|
@ -68,6 +68,7 @@ $scanner = new DirScannerTest(); |
|
|
|
//$dirTree = $scanner->scan(__DIR__); |
|
|
|
//$dirTree = $scanner->scan(__DIR__); |
|
|
|
$scanner->setWebRoot('/content/'); |
|
|
|
$scanner->setWebRoot('/content/'); |
|
|
|
$dirTree = $scanner->scan(__DIR__ . '/content/', 4); |
|
|
|
$dirTree = $scanner->scan(__DIR__ . '/content/', 4); |
|
|
|
|
|
|
|
//$dirTree = $scanner->scan(__DIR__ . '/../www/content/', 4); |
|
|
|
echo "Time cost: {$scanner->scanTimeCost} ms\n"; |
|
|
|
echo "Time cost: {$scanner->scanTimeCost} ms\n"; |
|
|
|
echo "\n"; |
|
|
|
echo "\n"; |
|
|
|
|
|
|
|
|
|
|
@ -77,6 +78,7 @@ echo "\n"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$readmeFile = $scanner->getDefaultReadme('favs/'); |
|
|
|
$readmeFile = $scanner->getDefaultReadme('favs/'); |
|
|
|
|
|
|
|
//$readmeFile = $scanner->getDefaultReadme(); |
|
|
|
if (!empty($readmeFile)) { |
|
|
|
if (!empty($readmeFile)) { |
|
|
|
$readme_id = $readmeFile['id']; |
|
|
|
$readme_id = $readmeFile['id']; |
|
|
|
$readme_titles = $scanner->getMDTitles($readme_id); |
|
|
|
$readme_titles = $scanner->getMDTitles($readme_id); |
|
|
|