mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 18:23:44 +02:00
Fix #3320 (Long Folder Names on Kindle)
This commit is contained in:
parent
a3bded09d1
commit
bfb4199452
1 changed files with 2 additions and 0 deletions
|
|
@ -63,6 +63,8 @@ def shorten_components_to(length, components):
|
|||
if not r:
|
||||
r = x.strip()[0] if x.strip() else 'x'
|
||||
ans.append(r)
|
||||
if len(os.sep.join(ans)) > length:
|
||||
return shorten_components_to(length, ans)
|
||||
return ans
|
||||
|
||||
def find_executable_in_path(name, path=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue