mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-24 06:24:19 -04:00
Make sure downloads_dir exists after loading settings
This commit is contained in:
parent
87d47d60f1
commit
507cb837ab
1 changed files with 6 additions and 0 deletions
|
@ -146,6 +146,12 @@ class Settings(object):
|
|||
except:
|
||||
pass
|
||||
|
||||
# Make sure downloads_dir exists
|
||||
try:
|
||||
os.makedirs(self.get('downloads_dir'), exist_ok=True)
|
||||
except:
|
||||
pass
|
||||
|
||||
def save(self):
|
||||
"""
|
||||
Save settings to file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue