MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / create_custom

Method create_custom

crates/paths/src/cli.rs:80–85  ·  view source on GitHub ↗
(&self, path: &Path)

Source from the content-addressed store, hash-verified

78 }
79
80 pub fn create_custom(&self, path: &Path) -> anyhow::Result<()> {
81 if std::fs::symlink_metadata(self).is_ok_and(|m| m.file_type().is_dir()) {
82 anyhow::bail!("version already exists");
83 }
84 self.link_to(path)
85 }
86
87 fn link_to(&self, path: &Path) -> anyhow::Result<()> {
88 let rel_path = path.strip_prefix(self.0.parent().unwrap()).unwrap_or(path);

Callers 1

execMethod · 0.80

Calls 1

link_toMethod · 0.80

Tested by

no test coverage detected