MCPcopy Index your code
hub / github.com/saltstack/salt / _move

Function _move

tests/buildpackage.py:184–197  ·  view source on GitHub ↗

Wrapper around shutil.move()

(src, dst)

Source from the content-addressed store, hash-verified

182
183
184def _move(src, dst):
185 """
186 Wrapper around shutil.move()
187 """
188 try:
189 os.remove(os.path.join(dst, os.path.basename(src)))
190 except OSError as exc:
191 if exc.errno != errno.ENOENT:
192 _abort(exc)
193
194 try:
195 shutil.move(src, dst)
196 except shutil.Error as exc:
197 _abort(exc)
198
199
200def _run_command(args):

Callers 1

build_centosFunction · 0.85

Calls 2

_abortFunction · 0.85
removeMethod · 0.45

Tested by

no test coverage detected