From 37e1cd8ce2acc308f19ccd7865f800f8a43fcfbd Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 26 Aug 2020 18:11:55 -0700 Subject: [PATCH] Let easy_add_file return the created id. --- epubfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epubfile.py b/epubfile.py index ecaaa7b..943f56e 100644 --- a/epubfile.py +++ b/epubfile.py @@ -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(),