Wrapper around shutil.move()
(src, dst)
| 182 | |
| 183 | |
| 184 | def _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 | |
| 200 | def _run_command(args): |
no test coverage detected