def setup_reource_packs(self):
        '''
        Handles parsing of Resource Packs and removing ones that are either have to0 high of a resolution, or don't replace any textures
        '''
        log.debug("Setting up the resource packs.")
        self._resource_packs = {}
        try:
            os.mkdir("terrain-textures")
        except OSError:
            pass
        self._resource_packs["Default Resource Pack"] = DefaultResourcePack()

        if os.path.exists(os.path.join(directories.getMinecraftProfileDirectory(directories.getSelectedProfile()), "resourcepacks")):
            log.debug("Gathering zipped packs...")
            zipResourcePacks = directories.getAllOfAFile(unicode(os.path.join(directories.getMinecraftProfileDirectory(directories.getSelectedProfile()), "resourcepacks")), ".zip")
            log.debug("Gatering folder packs...")
            folderResourcePacks = os.listdir(unicode(os.path.join(directories.getMinecraftProfileDirectory(directories.getSelectedProfile()), "resourcepacks")))
            log.debug("Processing zipped packs...")
            for zip_tex_pack in zipResourcePacks:
                zrp = ZipResourcePack(zip_tex_pack)
                if not zrp.isEmpty:
                    if not zrp.tooBig:
                        self._resource_packs[zrp.pack_name] = zrp
            log.debug("Processing folder packs...")
            for folder_tex_pack in folderResourcePacks:
                if os.path.isdir(os.path.join(directories.getMinecraftProfileDirectory(directories.getSelectedProfile()), "resourcepacks", folder_tex_pack)):
                    frp = FolderResourcePack(folder_tex_pack)
                    if not frp.isEmpty:
                        if not frp.tooBig:
                            self._resource_packs[frp.pack_name] = frp
        for tex in self._resource_packs.keys():
            pack = self._resource_packs[tex]
            if not os.path.exists(pack.terrain_path()):
                del self._resource_packs[tex]
        try:
            shutil.rmtree(os.path.join(directories.parentDir, "textures"))
        except:
            print "Could not remove \"textures\" directory"
            pass

        Handles parsing of Resource Packs and removing ones that are either have to0 high of a resolution, or don't replace any textures
        
resource_packs.py