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

Method from_os_path

dvc/fs/dvc.py:744–749  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

742 return self.fs.repo_url
743
744 def from_os_path(self, path: str) -> str:
745 if os.path.isabs(path) or (
746 os.name == "nt" and posixpath.isabs(path) and ntpath.sep not in path
747 ):
748 path = os.path.relpath(path, self.repo.root_dir)
749 return as_posix(path)
750
751 def close(self):
752 if "fs" in self.__dict__:

Callers 15

_collect_pathsFunction · 0.95
_openFunction · 0.95
_filter_outsFunction · 0.45
lsFunction · 0.45
ls_treeFunction · 0.45
get_data_index_entryMethod · 0.45
_collect_metricsFunction · 0.45
showFunction · 0.45
collectMethod · 0.45
_collect_plotsFunction · 0.45
_relpathFunction · 0.45
_collect_paramsFunction · 0.45

Calls 2

as_posixFunction · 0.70
relpathMethod · 0.45

Tested by

no test coverage detected