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

Function determine_output_dir

vmm/src/app/registry.rs:356–363  ·  view source on GitHub ↗
(tag: &str, image_path: &Path)

Source from the content-addressed store, hash-verified

354// ─── Helpers ────────────────────────────────────────────────────────────────
355
356fn determine_output_dir(tag: &str, image_path: &Path) -> std::path::PathBuf {
357 let dir_name = if tag.starts_with("dstack-") {
358 tag.to_string()
359 } else {
360 format!("dstack-{tag}")
361 };
362 image_path.join(dir_name)
363}
364
365/// Parse "registry.example.com/repo/name" into ("registry.example.com", "repo/name").
366///

Callers 1

pull_and_extractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected