Set file permissions of targetpath according to tarinfo.
(self, tarinfo, targetpath)
| 2557 | raise ExtractError("could not change owner") from e |
| 2558 | |
| 2559 | def chmod(self, tarinfo, targetpath): |
| 2560 | """Set file permissions of targetpath according to tarinfo. |
| 2561 | """ |
| 2562 | if tarinfo.mode is None: |
| 2563 | return |
| 2564 | try: |
| 2565 | os.chmod(targetpath, tarinfo.mode) |
| 2566 | except OSError as e: |
| 2567 | raise ExtractError("could not change mode") from e |
| 2568 | |
| 2569 | def utime(self, tarinfo, targetpath): |
| 2570 | """Set modification time of targetpath according to tarinfo. |
no test coverage detected