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

Method removeBackup

internal/buffer/backup.go:130–135  ·  view source on GitHub ↗
(path string, resolveName string)

Source from the content-addressed store, hash-verified

128}
129
130func (b *SharedBuffer) removeBackup(path string, resolveName string) {
131 os.Remove(path)
132 if resolveName != "" {
133 os.Remove(resolveName)
134 }
135}
136
137// Backup saves the buffer to the backups directory
138func (b *SharedBuffer) Backup() error {

Callers 3

RemoveBackupMethod · 0.95
ApplyBackupMethod · 0.95
safeWriteMethod · 0.95

Calls 1

RemoveMethod · 0.45

Tested by

no test coverage detected