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

Method CreateDir

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

Source from the content-addressed store, hash-verified

116}
117
118func (self *Shell) CreateDir(path string) *Shell {
119 fullPath := filepath.Join(self.dir, path)
120 if err := os.MkdirAll(fullPath, 0o755); err != nil {
121 self.fail(fmt.Sprintf("error creating directory: %s\n%s", fullPath, err))
122 }
123
124 return self
125}
126
127func (self *Shell) UpdateFile(path string, content string) *Shell {
128 fullPath := filepath.Join(self.dir, path)

Calls 2

failMethod · 0.80
SprintfMethod · 0.65

Tested by

no test coverage detected