fix len to not take into account the extension (we pass full filename anyways)
This commit is contained in:
parent
b3bf080e6f
commit
eca21781cb
1 changed files with 3 additions and 3 deletions
|
@ -703,8 +703,8 @@ def sanitize_filename(filename):
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
filename = filename.replace('?', '').replace(':', '').replace('!', '')\
|
filename = filename.replace('?', '').replace(':', '').replace('!', '')\
|
||||||
.replace('"', "'")
|
.replace('"', "'")
|
||||||
# 48 is the limit; 44 is used to account for the extenstion.
|
# 48 is the limit
|
||||||
if len(filename) > 44:
|
if len(filename) > 48:
|
||||||
filename = filename[0:44]
|
filename = filename[0:48]
|
||||||
|
|
||||||
return filename
|
return filename
|
||||||
|
|
Loading…
Add table
Reference in a new issue