MCPcopy
hub / github.com/redspread/spread / CleanupWorkdir

Method CleanupWorkdir

pkg/project/workdir.go:31–37  ·  view source on GitHub ↗

CleanupWorkdir removes the given directory and sets the repositories Workdir to an empty string.

(dir string)

Source from the content-addressed store, hash-verified

29
30// CleanupWorkdir removes the given directory and sets the repositories Workdir to an empty string.
31func (p *Project) CleanupWorkdir(dir string) error {
32 if err := os.RemoveAll(dir); err != nil {
33 return err
34 }
35
36 return p.repo.SetWorkdir("", false)
37}

Callers 1

PullMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected