(&self, backup_dir: &Path)
| 510 | } |
| 511 | |
| 512 | fn new_cert_dir(&self, backup_dir: &Path) -> Result<PathBuf> { |
| 513 | let timestamp = time::OffsetDateTime::now_utc() |
| 514 | .format(&time::format_description::well_known::Iso8601::DEFAULT) |
| 515 | .context("failed to format timestamp")?; |
| 516 | let backup_path = backup_dir.join(timestamp); |
| 517 | fs::create_dir_all(&backup_path)?; |
| 518 | Ok(backup_path) |
| 519 | } |
| 520 | } |
| 521 | |
| 522 | async fn find_error(order: &mut Order) -> Option<Problem> { |