Example #1
0
 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")
Example #2
0
	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")
Example #3
0
 def __init__(self, sk, dirname):
     tf_fileobj = util.tarfile_fileobj_wrap(sk)
     self.__tf = tarfile.open(mode="w|", fileobj=tf_fileobj)
     self.__dir = dirname
Example #4
0
	def __init__(self, sk, dirname):
		tf_fileobj = util.tarfile_fileobj_wrap(sk)
		self.__tf = tarfile.open(mode="w|", fileobj=tf_fileobj)
		self.__dir = dirname