From 42d94d820216246e983b6e6a1dabf76ab00628e7 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Thu, 8 Jan 2026 18:21:32 -0800 Subject: [PATCH] increase max Windows path length from 180 to 220 (#1211) --- kindlecomicconverter/comic2ebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 1dd6c10..855e05a 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -1125,7 +1125,7 @@ def chunk_directory(path): for root, _, files in os.walk(os.path.join(path, 'OEBPS', 'Images')): for f in files: # Windows MAX_LEN = 260 plus some buffer - if os.name == 'nt' and len(os.path.join(root, f)) > 180: + if os.name == 'nt' and len(os.path.join(root, f)) > 220: flattenTree(os.path.join(path, 'OEBPS', 'Images')) level = 1 break