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

Method isdvc

dvc/fs/dvc.py:371–376  ·  view source on GitHub ↗

Is this entry dvc-tracked?

(self, path, **kwargs)

Source from the content-addressed store, hash-verified

369 return dvc_fs.open(dvc_path, mode=mode, cache=kwargs.get("cache", False))
370
371 def isdvc(self, path, **kwargs) -> bool:
372 """Is this entry dvc-tracked?"""
373 try:
374 return self.info(path).get("dvc_info", {}).get("isout", False)
375 except FileNotFoundError:
376 return False
377
378 def ls(self, path, detail=True, dvc_only=False, **kwargs): # noqa: C901, PLR0912
379 key = self._get_key_from_relative(path)

Callers

nothing calls this directly

Calls 2

infoMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected