Ejemplo n.º 1
0
 def _create_folder(self, filters):
     folder = Folder()
     folder.compressor = SevenZipCompressor(filters)
     folder.coders = folder.compressor.coders
     folder.solid = True
     folder.digestdefined = False
     folder.bindpairs = []
     folder.totalin = 1
     folder.totalout = 1
     return folder
Ejemplo n.º 2
0
 def get_compressor(self) -> SevenZipCompressor:
     if self.compressor is not None:
         return self.compressor
     else:
         try:
             # FIXME: set filters
             self.compressor = SevenZipCompressor()
             self.coders = self.compressor.coders
             return self.compressor
         except Exception as e:
             raise e
Ejemplo n.º 3
0
 def __init__(self):
     super().__init__()
     self.packinfo = PackInfo()
     self.unpackinfo = UnpackInfo()
     folder = Folder()
     folder.compressor = SevenZipCompressor()
     folder.coders = folder.compressor.coders
     folder.solid = False
     folder.digestdefined = False
     folder.bindpairs = []
     folder.totalin = 1
     folder.totalout = 1
     folder.digestdefined = [True]
     self.unpackinfo.numfolders = 1
     self.unpackinfo.folders = [folder]