Conform to go-common EnsureDir(path, mode)

This commit is contained in:
Jae Kwon 2015-12-03 23:49:35 -08:00
parent b52cd4969b
commit 543ca16b6f
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ func getTMRoot(rootDir string) string {
func initTMRoot(rootDir string) {
rootDir = getTMRoot(rootDir)
EnsureDir(rootDir)
EnsureDir(rootDir, 0700)
configFilePath := path.Join(rootDir, "config.toml")

View File

@ -26,7 +26,7 @@ func getTMRoot(rootDir string) string {
func initTMRoot(rootDir string) {
rootDir = getTMRoot(rootDir)
EnsureDir(rootDir)
EnsureDir(rootDir, 0700)
configFilePath := path.Join(rootDir, "config.toml")
genesisFilePath := path.Join(rootDir, "genesis.json")