forked from TrueCloudLab/frostfs-node
[#727] Use util.MkdirAllX
instead of os.MkdirAll
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
51eeae3640
commit
7a10d902be
6 changed files with 21 additions and 20 deletions
|
@ -3,9 +3,9 @@ package blobovnicza
|
|||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/nspcc-dev/neofs-node/pkg/util"
|
||||
"go.etcd.io/bbolt"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -18,7 +18,7 @@ func (b *Blobovnicza) Open() error {
|
|||
zap.String("path", b.path),
|
||||
)
|
||||
|
||||
err := os.MkdirAll(path.Dir(b.path), b.perm)
|
||||
err := util.MkdirAllX(path.Dir(b.path), b.perm)
|
||||
if err == nil {
|
||||
b.log.Debug("opening BoltDB",
|
||||
zap.String("path", b.path),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue