(self)
return True
Verify a tar file: tar tvf file.tar
Verify a tar file: tar tvf file.tar
Verify a tar file : tar tvf file . tar
def verify_tar(self):
        """Verify a tar file: tar tvf file.tar"""
        if not os.path.isfile(self.filename):
            return False
        verbose = ''
        if Msg.level >= Msg.VER:
            verbose = 'v'
        cmd = ["tar", "t" + verbose + "f", self.filename]
        if Uprocess().call(cmd, stderr=Msg.chlderr, stdout=Msg.chlderr,
                           close_fds=True):
            return False
        return True
def verify_tar ( self ) : if not os . path . isfile ( self . filename ) : return False verbose = '' if Msg . level >= Msg . VER : verbose = 'v' cmd = [ "tar" , "t" + verbose + "f" , self . filename ] if Uprocess ( ) . call ( cmd , stderr = Msg . chlderr , stdout = Msg . chlderr , close_fds = True ) : return False return True