1
0

util.make_dir: 0o700 permissions on folders (#4357)

This commit is contained in:
ghost43
2018-05-28 14:22:54 +02:00
committed by GitHub
parent dbec3af810
commit 9b7a449057
6 changed files with 21 additions and 28 deletions

View File

@@ -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)