MCPcopy
hub / github.com/micro-editor/micro / SaveAs

Method SaveAs

internal/buffer/save.go:229–231  ·  view source on GitHub ↗

SaveAs saves the buffer to a specified path (filename), creating the file if it does not exist

(filename string)

Source from the content-addressed store, hash-verified

227
228// SaveAs saves the buffer to a specified path (filename), creating the file if it does not exist
229func (b *Buffer) SaveAs(filename string) error {
230 return b.saveToFile(filename, false, false)
231}
232
233func (b *Buffer) SaveWithSudo() error {
234 return b.SaveAsWithSudo(b.Path)

Callers 1

SaveMethod · 0.95

Calls 1

saveToFileMethod · 0.95

Tested by

no test coverage detected