(src, dst, copy_function=shutil.copy2)
| 287 | # throws EnvironmentError (OSError, IOError, shutil.Error) |
| 288 | @errorfix_win |
| 289 | def copy_tree(src, dst, copy_function=shutil.copy2): |
| 290 | if os.path.isfile(src): |
| 291 | copy_file(src, dst, copy_function=copy_function) |
| 292 | return |
| 293 | copytree3(src, dst, copy_function=copy_function) |
| 294 | |
| 295 | |
| 296 | # File read |