diff --git a/node/repo/fsrepo.go b/node/repo/fsrepo.go index 14085d4ac..709d78d3a 100644 --- a/node/repo/fsrepo.go +++ b/node/repo/fsrepo.go @@ -101,7 +101,7 @@ func (fsr *FsRepo) Init(t RepoType) error { } log.Infof("Initializing repo at '%s'", fsr.path) - err = os.Mkdir(fsr.path, 0755) //nolint: gosec + err = os.MkdirAll(fsr.path, 0755) //nolint: gosec if err != nil && !os.IsExist(err) { return err }