Fixed bug using download dirs with trailing slash.

This commit is contained in:
Joel Torstensson 2015-03-05 20:33:02 +01:00
parent 9cfa34c009
commit d449a60078

View File

@ -65,7 +65,8 @@ def _path_suggestion(filename):
"""
suggestion = config.get('completion', 'download-path-suggestion')
if suggestion == 'path':
return _download_dir() + os.sep
# add trailing '/' if not present
return os.path.join(_download_dir(), '')
elif suggestion == 'filename':
return filename
elif suggestion == 'both':