2022-07-08 11:33:49 +00:00
|
|
|
package fstree
|
|
|
|
|
2022-07-11 12:34:17 +00:00
|
|
|
import (
|
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/util"
|
|
|
|
)
|
|
|
|
|
2022-07-08 11:33:49 +00:00
|
|
|
// Open implements common.Storage.
|
2022-08-23 13:04:01 +00:00
|
|
|
func (t *FSTree) Open(ro bool) error {
|
|
|
|
t.readOnly = ro
|
|
|
|
return nil
|
|
|
|
}
|
2022-07-08 11:33:49 +00:00
|
|
|
|
|
|
|
// Init implements common.Storage.
|
2022-07-11 12:34:17 +00:00
|
|
|
func (t *FSTree) Init() error {
|
|
|
|
return util.MkdirAllX(t.RootPath, t.Permissions)
|
|
|
|
}
|
2022-07-08 11:33:49 +00:00
|
|
|
|
|
|
|
// Close implements common.Storage.
|
|
|
|
func (*FSTree) Close() error { return nil }
|