MCPcopy Create free account
hub / github.com/XiaoMi/mace / pull

Method pull

tools/python/utils/device.py:122–126  ·  view source on GitHub ↗
(self, target, out_dir)

Source from the content-addressed store, hash-verified

120 execute(str(target))
121
122 def pull(self, target, out_dir):
123 out_dir = os.path.abspath(out_dir)
124
125 if out_dir.strip() and out_dir != os.path.dirname(target.path):
126 execute("cp -rp %s %s" % (target.path, out_dir))
127
128 def mkdir(self, dirname):
129 execute("mkdir -p %s" % dirname)

Callers 1

run_model_with_confFunction · 0.95

Calls 1

executeFunction · 0.85

Tested by

no test coverage detected