Add recursive glob for epub directory
This commit is contained in:
parent
89a27f10b8
commit
df87add1b0
3 changed files with 41 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue