def unpackkdz(self): #all kdz = unkdz.KDZFileTools() kdz.kdzfile = self.file kdz.openFile(self.file) kdz.outdir = os.getcwd() kdz.partList = kdz.getPartitions() kdz.cmdExtractAll()
def islgkdzfile(self): kdz=unkdz.KDZFileTools() kdz.kdzfile=self.file try: kdz.openFile(self.file) l=kdz.getPartitions() if len(l) !=0:return True else:return False except:return False
def listkdz(self): #all kdz = unkdz.KDZFileTools() kdz.kdzfile = self.file kdz.openFile(self.file) kdz.cmdListPartitions()