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

@@ -68,8 +68,7 @@ blockchains = {}
def read_blockchains(config):
blockchains[0] = Blockchain(config, 0, None)
fdir = os.path.join(util.get_headers_dir(config), 'forks')
if not os.path.exists(fdir):
os.mkdir(fdir)
util.make_dir(fdir)
l = filter(lambda x: x.startswith('fork_'), os.listdir(fdir))
l = sorted(l, key = lambda x: int(x.split('_')[1]))
for filename in l: