MCPcopy Create free account
hub / github.com/Sifchain/sifnode / cleanup

Method cleanup

tools/sifgen/node/node.go:440–454  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

438}
439
440func (n *Node) cleanup() error {
441 if n.Standalone {
442 _path := fmt.Sprintf("%v/%v", common.DefaultNodeHome, "keyring-test")
443 dir, err := ioutil.ReadDir(_path)
444 for _, d := range dir {
445 _ = os.RemoveAll(path.Join([]string{_path, d.Name()}...))
446 }
447
448 if err != nil {
449 return err
450 }
451 }
452
453 return nil
454}

Callers 1

BuildMethod · 0.95

Calls 1

NameMethod · 0.45

Tested by

no test coverage detected