(self, tmp_imagedir)
return ""
Identify type of image from extracted image directory
Identify type of image from extracted image directory
Identify type of image from extracted image directory
def _get_imagedir_type(self, tmp_imagedir):
        """Identify type of image from extracted image directory"""
        image_types_list = [(tmp_imagedir + "/oci-layout", "OCI"),
                            (tmp_imagedir + "/manifest.json", "Docker"), ]
        for (checkfile, imagetype) in image_types_list:
            if os.path.exists(checkfile):
                return imagetype
        return ""
def _get_imagedir_type ( self , tmp_imagedir ) : image_types_list = [ ( tmp_imagedir + "/oci-layout" , "OCI" ) , ( tmp_imagedir + "/manifest.json" , "Docker" ) , ] for ( checkfile , imagetype ) in image_types_list : if os . path . exists ( checkfile ) : return imagetype return ""