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

Method _get_key

dvc/fs/dvc.py:242–247  ·  view source on GitHub ↗
(self, path: "StrPath")

Source from the content-addressed store, hash-verified

240 )
241
242 def _get_key(self, path: "StrPath") -> Key:
243 path = os.fspath(path)
244 parts = self.repo.fs.relparts(path, self.repo.root_dir)
245 if parts == (os.curdir,):
246 return ()
247 return parts
248
249 @functools.cached_property
250 def _subrepos_trie(self):

Callers 4

_subrepos_trieMethod · 0.95
_datafssMethod · 0.95
_get_subrepo_infoMethod · 0.95
test_get_keyFunction · 0.45

Calls 2

relpartsMethod · 0.80
fspathMethod · 0.45

Tested by 1

test_get_keyFunction · 0.36