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
|
@ -10,6 +10,7 @@ import (
|
|||
objectSDK "github.com/nspcc-dev/neofs-api-go/pkg/object"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/core/object"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobstor/fstree"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/util"
|
||||
"go.etcd.io/bbolt"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -26,7 +27,7 @@ const lruKeysCount = 256 * 1024 * 8
|
|||
const dbName = "small.bolt"
|
||||
|
||||
func (c *cache) openStore() error {
|
||||
if err := os.MkdirAll(c.path, os.ModePerm); err != nil {
|
||||
if err := util.MkdirAllX(c.path, os.ModePerm); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue