package com.google.android.play.core.assetpacks;

import com.bytedance.covode.number.Covode;
import java.io.File;

public final /* synthetic */ class cd implements Runnable {
    public final cf LIZ;
    public final cc LIZIZ;

    static {
        Covode.recordClassIndex(44164);
    }

    public cd(cf cfVar, cc ccVar) {
        this.LIZ = cfVar;
        this.LIZIZ = ccVar;
    }

    public final void run() {
        cf cfVar = this.LIZ;
        cc ccVar = this.LIZIZ;
        ac acVar = cfVar.LIZ;
        String str = ccVar.LJIIJ;
        int i = ccVar.LIZ;
        long j = ccVar.LIZIZ;
        File LIZ2 = acVar.LIZ(str);
        if (LIZ2.exists()) {
            for (File file : LIZ2.listFiles()) {
                if (!file.getName().equals(String.valueOf(i)) && !file.getName().equals("stale.tmp")) {
                    ac.LIZIZ(file);
                } else if (file.getName().equals(String.valueOf(i))) {
                    for (File file2 : file.listFiles()) {
                        if (!file2.getName().equals(String.valueOf(j))) {
                            ac.LIZIZ(file2);
                        }
                    }
                }
            }
        }
    }
}
