We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a3ab23 commit 832d84eCopy full SHA for 832d84e
cmd/ipfs/init.go
@@ -73,7 +73,7 @@ func initCmd(c *commander.Command, inp []string) error {
73
cfg.Datastore.Type = "leveldb"
74
75
// Construct the data store if missing
76
- if err := os.MkdirAll(dspath, os.ModeDir); err != nil {
+ if err := os.MkdirAll(dspath, os.ModePerm); err != nil {
77
return err
78
}
79
0 commit comments