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

Method Reset

tools/sifgen/utils/cli.go:70–83  ·  view source on GitHub ↗
(paths []string)

Source from the content-addressed store, hash-verified

68}
69
70func (c CLI) Reset(paths []string) error {
71 for _, _path := range paths {
72 dir, err := ioutil.ReadDir(_path)
73 for _, d := range dir {
74 _ = os.RemoveAll(path.Join([]string{_path, d.Name()}...))
75 }
76
77 if err != nil {
78 return err
79 }
80 }
81
82 return nil
83}
84
85func (c CLI) DaemonPath() (*string, error) {
86 return c.shellExec("which", "sifnoded")

Callers

nothing calls this directly

Calls 1

NameMethod · 0.45

Tested by

no test coverage detected