Exemplo n.º 1
0
 def run(self):
     try:
         tf = tarfile.open(mode="r|", fileobj=util.fileobj_wrap(self.__sk))
         tf.extractall(self.__dir)
         tf.close()
     except:
         logging.exception("Exception in untar_thread")
Exemplo n.º 2
0
	def run(self):
		try:
			tf = tarfile.open(mode="r|", fileobj=util.fileobj_wrap(self.__sk))
			tf.extractall(self.__dir)
			tf.close()
		except:
			logging.exception("Exception in untar_thread")
Exemplo n.º 3
0
	def run(self):
		try:
			tf = tarfile.open(mode="r|", fileobj=util.fileobj_wrap(self.__sk))
			tf.extractall(self.__dir)
			tf.close()
			# Discard all remaining data in socket after tarfile closed
			util.discard_sk_input(self.__sk)
		except:
			logging.exception("Exception in untar_thread")
Exemplo n.º 4
0
 def __init__(self, sk, dirname):
     self.__tf = tarfile.open(mode="w|", fileobj=util.fileobj_wrap(sk))
     self.__dir = dirname
Exemplo n.º 5
0
	def __init__(self, sk, dirname):
		self.__tf = tarfile.open(mode="w|", fileobj=util.fileobj_wrap(sk))
		self.__dir = dirname