mirror of
https://github.com/ciromattia/kcc
synced 2026-01-25 22:47:28 +00:00
increase max Windows path length from 180 to 220 (#1211)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user