MCPcopy
hub / github.com/treeverse/dvc / save

Method save

dvc/dependency/param.py:185–193  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

183 return HashInfo(self.PARAM_PARAMS, info) # type: ignore[arg-type]
184
185 def save(self):
186 if not self.exists:
187 raise self.DoesNotExistError(self)
188
189 if not self.isfile() and not self.isdir():
190 raise self.IsNotFileOrDirError(self)
191
192 self.ignore()
193 self.hash_info = self.get_hash()

Callers

nothing calls this directly

Calls 4

get_hashMethod · 0.95
isfileMethod · 0.80
isdirMethod · 0.80
ignoreMethod · 0.45

Tested by

no test coverage detected