(ctx context.DnoteCtx)
| 209 | } |
| 210 | |
| 211 | func clearBackup(ctx context.DnoteCtx) error { |
| 212 | backupPath := fmt.Sprintf("%s/%s", ctx.Paths.Home, backupDirName) |
| 213 | |
| 214 | if err := os.RemoveAll(backupPath); err != nil { |
| 215 | return errors.Wrapf(err, "Failed to remove backup at %s", backupPath) |
| 216 | } |
| 217 | |
| 218 | return nil |
| 219 | } |
| 220 | |
| 221 | // getSchemaPath returns the path to the file containing schema info |
| 222 | func getSchemaPath(ctx context.DnoteCtx) string { |