forked from TrueCloudLab/frostfs-node
[#1132] *: Use path/filepath
package when working with files
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
0decb95591
commit
674f520da7
20 changed files with 73 additions and 77 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue