mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Scan sub-folders recursively when showing the data files link
This commit is contained in:
parent
82392bdd61
commit
6c9bd54cb6
@ -219,8 +219,8 @@ def mi_to_html(
|
||||
else:
|
||||
data_path = os.path.join(path, DATA_DIR_NAME)
|
||||
with suppress(OSError):
|
||||
for de in os.scandir(data_path):
|
||||
if de.is_file():
|
||||
for dirpath, dirnames, filenames in os.walk(data_path):
|
||||
if filenames:
|
||||
num_of_folders = 2
|
||||
break
|
||||
text = _('Book files')
|
||||
|
Loading…
x
Reference in New Issue
Block a user