(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.
        """
        if hasattr(os, 'chmod'):
            try:
                os.chmod(targetpath, tarinfo.mode)
            except EnvironmentError as e:
                raise ExtractError("could not change mode")
def chmod ( self , tarinfo , targetpath ) : if hasattr ( os , 'chmod' ) : try : os . chmod ( targetpath , tarinfo . mode ) except EnvironmentError as e : raise ExtractError ( "could not change mode" )