MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / new_cert_dir

Method new_cert_dir

certbot/src/acme_client.rs:512–519  ·  view source on GitHub ↗
(&self, backup_dir: &Path)

Source from the content-addressed store, hash-verified

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
522async fn find_error(order: &mut Order) -> Option<Problem> {

Callers 1

store_certMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected