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:
|
else:
|
||||||
data_path = os.path.join(path, DATA_DIR_NAME)
|
data_path = os.path.join(path, DATA_DIR_NAME)
|
||||||
with suppress(OSError):
|
with suppress(OSError):
|
||||||
for de in os.scandir(data_path):
|
for dirpath, dirnames, filenames in os.walk(data_path):
|
||||||
if de.is_file():
|
if filenames:
|
||||||
num_of_folders = 2
|
num_of_folders = 2
|
||||||
break
|
break
|
||||||
text = _('Book files')
|
text = _('Book files')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user