Treat addfile arguments as glob patterns.
This commit is contained in:
parent
f29677d4e0
commit
261faf66ae
1 changed files with 13 additions and 12 deletions
|
@ -1222,7 +1222,8 @@ def random_string(length, characters=string.ascii_lowercase):
|
||||||
def addfile_argparse(args):
|
def addfile_argparse(args):
|
||||||
book = Epub.open(args.epub)
|
book = Epub.open(args.epub)
|
||||||
|
|
||||||
for file in args.files:
|
for pattern in args.files:
|
||||||
|
for file in glob.glob(pattern):
|
||||||
print(f'Adding file {file}.')
|
print(f'Adding file {file}.')
|
||||||
file = pathclass.Path(file)
|
file = pathclass.Path(file)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue