Merge pull request #3822 from filcloud/issue-2495-make-nested-dir

make nested dir
This commit is contained in:
Łukasz Magiera 2020-09-14 13:06:14 +02:00 committed by GitHub
commit 3a34856dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}