MCPcopy
hub / github.com/dmlc/dgl / copy_file

Function copy_file

tools/copy_files.py:13–16  ·  view source on GitHub ↗
(file_name, ip, workspace, param="")

Source from the content-addressed store, hash-verified

11
12
13def copy_file(file_name, ip, workspace, param=""):
14 print("copy {} to {}".format(file_name, ip + ":" + workspace + "/"))
15 cmd = "scp " + param + " " + file_name + " " + ip + ":" + workspace + "/"
16 subprocess.check_call(cmd, shell=True)
17
18
19def exec_cmd(ip, cmd):

Callers 1

mainFunction · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected