Add recursive glob for epub directory

This commit is contained in:
Marsender 2013-10-07 23:00:06 +01:00
parent 89a27f10b8
commit df87add1b0
3 changed files with 41 additions and 3 deletions

View file

@ -14,7 +14,7 @@ try {
echo sprintf('Load database %s', $fileName) . '<br />';
// Add the epub files into the database
if (!empty($dbConfig['epub_path'])) {
$fileList = glob($dbConfig['epub_path'] . DIRECTORY_SEPARATOR . '*.epub');
$fileList = RecursiveGlob($dbConfig['epub_path'], '*.epub');
foreach ($fileList as $fileName) {
$db->AddEpub($fileName);
}