[#1132] *: Use path/filepath package when working with files

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-02-02 16:28:08 +03:00 committed by LeL
parent 0decb95591
commit 674f520da7
20 changed files with 73 additions and 77 deletions

View file

@ -2,7 +2,7 @@ package blobovnicza
import (
"fmt"
"path"
"path/filepath"
"github.com/nspcc-dev/neofs-node/pkg/util"
"go.etcd.io/bbolt"
@ -21,7 +21,7 @@ func (b *Blobovnicza) Open() error {
var err error
if !b.boltOptions.ReadOnly {
err = util.MkdirAllX(path.Dir(b.path), b.perm)
err = util.MkdirAllX(filepath.Dir(b.path), b.perm)
if err != nil {
return err
}