MCPcopy Create free account
hub / github.com/evilsocket/shellz / Save

Method Save

models/shell.go:80–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80func (sh Shell) Save() error {
81 if data, err := json.MarshalIndent(sh, "", " "); err != nil {
82 return err
83 } else if err = ioutil.WriteFile(sh.Path, data, 0644); err != nil {
84 return err
85 }
86 return nil
87}

Callers 3

runEnableFunction · 0.80
onTestFailFunction · 0.80
onTestSuccessFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected