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

Method keepBackup

internal/buffer/backup.go:91–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91func (b *SharedBuffer) keepBackup() bool {
92 return b.forceKeepBackup || b.Settings["permbackup"].(bool)
93}
94
95func (b *SharedBuffer) writeBackup(path string) (string, string, error) {
96 backupdir := b.backupDir()

Callers 2

RemoveBackupMethod · 0.95
safeWriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected