def __init__(self, dst, disk_type, disk, do_compress):
self.src = path.expandvars(disk['<STR_LIT:path>'])<EOL>self.name = path.basename(self.src)<EOL>self.dst = path.join(path.expandvars(dst), self.name)<EOL>self.dist_type = disk_type<EOL>self.disk = disk<EOL>self.exported_metadata = copy.deepcopy(disk['<STR_LIT>'])<EOL>self.do_compress = do_compress<EOL>
Args:
    dst (str): The absolute path of the exported disk
    disk_type (str): The type of the image
        e.g template, file, empty...
    disk (dict): Disk attributes as found in
        workdir/current/virt/VM-NAME
    do_compress(bool): If true, apply compression to the
        exported disk.