From 2076775d9495c301e0dba98324e1d2c3190170bb Mon Sep 17 00:00:00 2001 From: Nils Leo Date: Fri, 24 Jul 2026 07:43:16 +0200 Subject: [PATCH] Create the destination dir before flattening a single-subfolder archive (#1405) --- kindlecomicconverter/comic2ebook.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 74285806..854744ff 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -984,6 +984,7 @@ def getWorkFolder(afile, workdir=None): else: workdir2 = mkdtemp('', 'KCC-') fullPath2 = os.path.join(workdir2, 'OEBPS', 'Images') + os.makedirs(fullPath2, exist_ok=True) for file in os.listdir(os.path.join(fullPath, tdir[0])): move(os.path.join(fullPath, tdir[0], file), fullPath2) rmtree(workdir, True)