mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 19:44:32 +01:00
...
This commit is contained in:
parent
fb967276d5
commit
46a1b04528
1 changed files with 1 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ def sanitize_file_name(name, substitute='_', as_unicode=False):
|
|||
if as_unicode:
|
||||
one = one.decode(filesystem_encoding)
|
||||
one = one.replace('..', substitute)
|
||||
# Windows doesn't like path components that end with a period
|
||||
if one.endswith('.'):
|
||||
one = one[:-1]+'_'
|
||||
return one
|
||||
|
|
|
|||
Loading…
Reference in a new issue