[#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
|
@ -3,7 +3,7 @@ package blobstor
|
|||
import (
|
||||
"encoding/hex"
|
||||
"io/fs"
|
||||
"path"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobovnicza"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/local_object_storage/blobstor/fstree"
|
||||
|
@ -132,7 +132,7 @@ func WithUncompressableContentTypes(values []string) Option {
|
|||
func WithRootPath(rootDir string) Option {
|
||||
return func(c *cfg) {
|
||||
c.fsTree.RootPath = rootDir
|
||||
c.blzRootPath = path.Join(rootDir, blobovniczaDir)
|
||||
c.blzRootPath = filepath.Join(rootDir, blobovniczaDir)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue