MCPcopy Index your code
hub / github.com/SLiCAP/SLiCAP_python / _copyNotOverwrite

Function _copyNotOverwrite

SLiCAP/SLiCAP.py:80–92  ·  view source on GitHub ↗

Copies the file 'src' to 'dest' if the latter one does not exist. :param src: Name of the source file. :type src: str :param dest: Name of the desitination file. :type dest: str

(src, dest)

Source from the content-addressed store, hash-verified

78 subprocess.Popen(cmd, shell=True)
79
80def _copyNotOverwrite(src, dest):
81 """
82 Copies the file 'src' to 'dest' if the latter one does not exist.
83
84 :param src: Name of the source file.
85 :type src: str
86
87 :param dest: Name of the desitination file.
88 :type dest: str
89 """
90 if not os.path.exists(dest):
91 copy2(src, dest)
92 return
93
94def _makeDir(dirName):
95 """

Callers 1

initProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected