Call shutil.copytree() with logging
(
src: pathlib.Path, dest: pathlib.Path, logger: logging.Logger
)
| 8 | |
| 9 | |
| 10 | def copytree_with_logging( |
| 11 | src: pathlib.Path, dest: pathlib.Path, logger: logging.Logger |
| 12 | ) -> None: |
| 13 | """Call shutil.copytree() with logging""" |
| 14 | logger.info("Copying %s -> %s", str(src), str(dest)) |
| 15 | shutil.copytree(src, dest) |
| 16 | |
| 17 | |
| 18 | def copy_with_logging( |
no outgoing calls
no test coverage detected