(path, content string)
| 370 | } |
| 371 | |
| 372 | func (rs *RollupStore) writeDigest(path, content string) error { |
| 373 | if err := os.MkdirAll(filepath.Dir(path), 0o750); err != nil { |
| 374 | return err |
| 375 | } |
| 376 | return atomicWriteFile(path, []byte(content), 0o600) |
| 377 | } |
| 378 | |
| 379 | // enforceWeeklyRetention deletes the oldest weeklies beyond the cap; their |
| 380 | // content lives on in the monthly digests. |
no test coverage detected