(self, tarinfo, targetpath)
Set file permissions of targetpath according to tarinfo.
Set file permissions of targetpath according to tarinfo.
Set file permissions of targetpath according to tarinfo .
def chmod(self, tarinfo, targetpath):
        """Set file permissions of targetpath according to tarinfo.
        """
        try:
            os.chmod(targetpath, tarinfo.mode)
        except OSError as e:
            raise ExtractError("could not change mode") from e
def chmod ( self , tarinfo , targetpath ) : try : os . chmod ( targetpath , tarinfo . mode ) except OSError as e : raise ExtractError ( "could not change mode" ) from e