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