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

Method parts

dvc/fs/dvc.py:174–190  ·  view source on GitHub ↗
(cls, path: str)

Source from the content-addressed store, hash-verified

172
173 @classmethod
174 def parts(cls, path: str) -> tuple[str, ...]:
175 ret = []
176 while True:
177 path, part = posixpath.split(path)
178
179 if part:
180 ret.append(part)
181 continue
182
183 if path:
184 ret.append(path)
185
186 break
187
188 ret.reverse()
189
190 return tuple(ret)
191
192 def normpath(self, path: str) -> str:
193 return posixpath.normpath(path)

Callers 7

relpartsMethod · 0.95
index_keyMethod · 0.45
_commit_granular_dirMethod · 0.45
unstageMethod · 0.45
applyMethod · 0.45
_collect_targetsFunction · 0.45

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected