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

Method relpath

dvc/fs/dvc.py:200–203  ·  view source on GitHub ↗
(self, path: str, start: Optional[str] = None)

Source from the content-addressed store, hash-verified

198 return self.normpath(path)
199
200 def relpath(self, path: str, start: Optional[str] = None) -> str:
201 if start is None:
202 start = "."
203 return posixpath.relpath(self.abspath(path), start=self.abspath(start))
204
205 def relparts(self, path: str, start: Optional[str] = None) -> tuple[str, ...]:
206 return self.parts(self.relpath(path, start=start))

Callers 2

relpartsMethod · 0.95
from_os_pathMethod · 0.45

Calls 1

abspathMethod · 0.95

Tested by

no test coverage detected