MCPcopy
hub / github.com/jesseduffield/lazygit / DeleteFile

Method DeleteFile

pkg/integration/components/shell.go:108–116  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

106}
107
108func (self *Shell) DeleteFile(path string) *Shell {
109 fullPath := filepath.Join(self.dir, path)
110 err := os.RemoveAll(fullPath)
111 if err != nil {
112 self.fail(fmt.Sprintf("error deleting file: %s\n%s", fullPath, err))
113 }
114
115 return self
116}
117
118func (self *Shell) CreateDir(path string) *Shell {
119 fullPath := filepath.Join(self.dir, path)

Callers 10

DeleteFileAndAddMethod · 0.95
bare_repo.goFile · 0.80
expectClipboardFunction · 0.80
expectClipboardFunction · 0.80
global_context.goFile · 0.80

Calls 2

failMethod · 0.80
SprintfMethod · 0.65

Tested by

no test coverage detected