Set file permissions of targetpath according to tarinfo.
(self, tarinfo, targetpath)
| 2816 | raise ExtractError("could not change owner") from e |
| 2817 | |
| 2818 | def chmod(self, tarinfo, targetpath): |
| 2819 | """Set file permissions of targetpath according to tarinfo. |
| 2820 | """ |
| 2821 | if tarinfo.mode is None: |
| 2822 | return |
| 2823 | try: |
| 2824 | os.chmod(targetpath, tarinfo.mode) |
| 2825 | except OSError as e: |
| 2826 | raise ExtractError("could not change mode") from e |
| 2827 | |
| 2828 | def utime(self, tarinfo, targetpath): |
| 2829 | """Set modification time of targetpath according to tarinfo. |
no test coverage detected