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

Method find

dvc/repo/datasets.py:283–287  ·  view source on GitHub ↗
(path, name)

Source from the content-addressed store, hash-verified

281 datasets_lock = self.repo.index._datasets_lock
282
283 def find(path, name) -> Optional[dict[str, Any]]:
284 # only look for `name` in the lock file next to the
285 # corresponding `dvc.yaml` file
286 lock = datasets_lock.get(path, [])
287 return next((dataset for dataset in lock if dataset["name"] == name), None)
288
289 return {ds["name"]: find(path, name) for name, (path, ds) in self._spec.items()}
290

Callers 6

_collect_pathsFunction · 0.45
try_expand_pathsFunction · 0.45
_copy_differenceMethod · 0.45
_unpack_dir_filesFunction · 0.45
transferMethod · 0.45
downloadFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected