mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2581 (Fixed "[Errno 36] File name too long" error during eBook registration)
This commit is contained in:
parent
8516ace0d1
commit
aaac047c0e
@ -154,7 +154,7 @@ def format_group(db, notify_changes, is_remote, args):
|
|||||||
if is_remote:
|
if is_remote:
|
||||||
paths = []
|
paths = []
|
||||||
for name, data in formats:
|
for name, data in formats:
|
||||||
with open(os.path.join(tdir, os.path.basename(name)), 'wb') as f:
|
with open(os.path.join(tdir, os.path.basename(name.replace('\\', os.sep))), 'wb') as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
paths.append(f.name)
|
paths.append(f.name)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user