(src, dst, copy_function=shutil.copy2)
| 278 | # throws EnvironmentError (OSError, IOError) |
| 279 | @errorfix_win |
| 280 | def copy_file(src, dst, copy_function=shutil.copy2): |
| 281 | if os.path.isdir(dst): |
| 282 | raise CustomFsError(errno.EISDIR, filename=dst) |
| 283 | copy_function(src, dst) |
| 284 | |
| 285 | |
| 286 | # File/directory copy |
no test coverage detected