Fixed bug using download dirs with trailing slash.
This commit is contained in:
parent
9cfa34c009
commit
d449a60078
@ -65,7 +65,8 @@ def _path_suggestion(filename):
|
|||||||
"""
|
"""
|
||||||
suggestion = config.get('completion', 'download-path-suggestion')
|
suggestion = config.get('completion', 'download-path-suggestion')
|
||||||
if suggestion == 'path':
|
if suggestion == 'path':
|
||||||
return _download_dir() + os.sep
|
# add trailing '/' if not present
|
||||||
|
return os.path.join(_download_dir(), '')
|
||||||
elif suggestion == 'filename':
|
elif suggestion == 'filename':
|
||||||
return filename
|
return filename
|
||||||
elif suggestion == 'both':
|
elif suggestion == 'both':
|
||||||
|
Loading…
Reference in New Issue
Block a user