From de7f387f4879a61629eee2cf2cea5e877b310da7 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 7 Nov 2021 19:33:14 -0800 Subject: [PATCH] Update calls to pathclass.glob_files. --- epubfile.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/epubfile.py b/epubfile.py index bada9ea..bd20c79 100644 --- a/epubfile.py +++ b/epubfile.py @@ -1386,7 +1386,9 @@ from voussoirkit import winglob DOCSTRING = ''' Epubfile -The simple python .epub scripting tool. +======== + +A simple python .epub scripting tool. {addfile} @@ -1522,7 +1524,7 @@ def addfile_argparse(args): book = Epub(args.epub) 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}.') try: book.easy_add_file(file)