def run(self): try: tf_fileobj = util.tarfile_fileobj_wrap(self.__sk) tf = tarfile.open(mode="r|", fileobj=tf_fileobj) tf.extractall(self.__dir) tf.close() tf_fileobj.discard_unread_input() except: logging.exception("Exception in untar_thread")
def run(self): try: tf_fileobj = util.tarfile_fileobj_wrap(self.__sk) tf = tarfile.open(mode="r|", fileobj=tf_fileobj) tf.extractall(self.__dir) tf.close() tf_fileobj.discard_unread_input() except Exception: logging.exception("Exception in untar_thread")
def __init__(self, sk, dirname): tf_fileobj = util.tarfile_fileobj_wrap(sk) self.__tf = tarfile.open(mode="w|", fileobj=tf_fileobj) self.__dir = dirname