Exemple #1
0
	def scan_mount(self):
		self.infotxt.set_text('HedgeHog connected. Mounting...')
		ret = hgi.hhg_findmount()
		while ret=='' and not self.quitnow:
			self.update_prgs()
			ret = hgi.hhg_findmount()
			time.sleep(0.1)
		return ret
Exemple #2
0
	def run(self):
		self.priter = 0
		if not hgi.hhg_findmount():
			self.scan_dmesg()
		srcdir = self.scan_mount()
		self.scan_files(srcdir)
		self.close()
		return srcdir
Exemple #3
0
 def run(self):
     self.priter = 0
     if not hgi.hhg_findmount():
         self.scan_dmesg()
     srcdir = self.scan_mount()
     self.scan_files(srcdir)
     self.close()
     return srcdir
Exemple #4
0
	def run(self):
		self.priter = 0
		if not hgi.hhg_findmount():
			self.scan_dmesg()
		first_srcdir = self.scan_mount()
		first_id = hgi.hhg_findid()
		self.scan_files(first_srcdir, first_id)
		self.close()
		return [first_srcdir, first_id]
Exemple #5
0
	def run(self):
		self.priter = 0
		second_id =[]
		while not second_id:
			if not hgi.hhg_findmount():
				self.idlist = hhg_nextid(id_matrix, first_id)
				self.scan_dmesg()
			second_srcdir = self.scan_mount()
			second_id = hgi.hhg_findid()
			if (second_id not in self.idlist and second_id):
				second_id = []
				self.falsedetect = 1
				while self.falsedetect:
					self.falsedetect = self.detect_false()
		self.scan_files(second_srcdir)
		self.close()
		return [second_srcdir, second_id]