Let easy_add_file return the created id.
This commit is contained in:
parent
b561a3233f
commit
37e1cd8ce2
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ class Epub:
|
|||
'''
|
||||
filepath = pathclass.Path(filepath)
|
||||
with self._fopen(filepath.absolute_path, 'rb') as handle:
|
||||
self.add_file(
|
||||
return self.add_file(
|
||||
id=filepath.basename,
|
||||
basename=filepath.basename,
|
||||
content=handle.read(),
|
||||
|
|
Loading…
Reference in a new issue