Update calls to pathclass.glob_files.
This commit is contained in:
parent
2162f1d982
commit
de7f387f48
1 changed files with 4 additions and 2 deletions
|
@ -1386,7 +1386,9 @@ from voussoirkit import winglob
|
||||||
|
|
||||||
DOCSTRING = '''
|
DOCSTRING = '''
|
||||||
Epubfile
|
Epubfile
|
||||||
The simple python .epub scripting tool.
|
========
|
||||||
|
|
||||||
|
A simple python .epub scripting tool.
|
||||||
|
|
||||||
{addfile}
|
{addfile}
|
||||||
|
|
||||||
|
@ -1522,7 +1524,7 @@ def addfile_argparse(args):
|
||||||
book = Epub(args.epub)
|
book = Epub(args.epub)
|
||||||
|
|
||||||
for pattern in args.files:
|
for pattern in args.files:
|
||||||
for file in pathclass.glob(pattern, files=True):
|
for file in pathclass.glob_files(pattern):
|
||||||
print(f'Adding file {file.absolute_path}.')
|
print(f'Adding file {file.absolute_path}.')
|
||||||
try:
|
try:
|
||||||
book.easy_add_file(file)
|
book.easy_add_file(file)
|
||||||
|
|
Loading…
Reference in a new issue