util.make_dir: 0o700 permissions on folders (#4357)
This commit is contained in:
@@ -12,7 +12,7 @@ from decimal import Decimal
|
||||
|
||||
from .bitcoin import COIN
|
||||
from .i18n import _
|
||||
from .util import PrintError, ThreadJob
|
||||
from .util import PrintError, ThreadJob, make_dir
|
||||
|
||||
|
||||
# See https://en.wikipedia.org/wiki/ISO_4217
|
||||
@@ -432,8 +432,7 @@ class FxThread(ThreadJob):
|
||||
self.hist_checkbox = None
|
||||
self.cache_dir = os.path.join(config.path, 'cache')
|
||||
self.set_exchange(self.config_exchange())
|
||||
if not os.path.exists(self.cache_dir):
|
||||
os.mkdir(self.cache_dir)
|
||||
make_dir(self.cache_dir)
|
||||
|
||||
def get_currencies(self, h):
|
||||
d = get_exchanges_by_ccy(h)
|
||||
|
||||
Reference in New Issue
Block a user