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

Method abspath

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

Source from the content-addressed store, hash-verified

193 return posixpath.normpath(path)
194
195 def abspath(self, path: str) -> str:
196 if not posixpath.isabs(path):
197 path = self.join(self.getcwd(), path)
198 return self.normpath(path)
199
200 def relpath(self, path: str, start: Optional[str] = None) -> str:
201 if start is None:

Callers 15

relpathMethod · 0.95
__init__Method · 0.80
_resolveMethod · 0.80
_load_pathsMethod · 0.80
_get_dvc_argsFunction · 0.80
daemonizeFunction · 0.80
get_dvc_infoFunction · 0.80
add_no_submodulesFunction · 0.80
_parse_pathMethod · 0.80
__call__Method · 0.80
is_ignored_dirMethod · 0.80
is_ignored_fileMethod · 0.80

Calls 3

joinMethod · 0.95
getcwdMethod · 0.95
normpathMethod · 0.95

Tested by 15

unreliable_uploadFunction · 0.64
test_shared_cache_dirFunction · 0.64
test_load_relative_pathsFunction · 0.64
test_import_to_dirFunction · 0.64
unreliable_uploadFunction · 0.64
test_resolveFunction · 0.64
test_resolve_homedirFunction · 0.64
test_daemonFunction · 0.64