make nested dir
This commit is contained in:
parent
aa83a4c1f5
commit
dcae513487
@ -101,7 +101,7 @@ func (fsr *FsRepo) Init(t RepoType) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log.Infof("Initializing repo at '%s'", fsr.path)
|
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) {
|
if err != nil && !os.IsExist(err) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user