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

Method gen

dvc/testing/tmp_dir.py:121–125  ·  view source on GitHub ↗
(self, struct, text="")

Source from the content-addressed store, hash-verified

119
120 # Bootstrapping methods
121 def gen(self, struct, text=""):
122 if isinstance(struct, (str, bytes, pathlib.PurePath)):
123 struct = {struct: text}
124
125 return self._gen(struct)
126
127 def _gen(self, struct, prefix=None):
128 paths = []

Callers 3

dvc_genMethod · 0.95
scm_genMethod · 0.95
test_ignore_externalFunction · 0.95

Calls 1

_genMethod · 0.95

Tested by 1

test_ignore_externalFunction · 0.76