package x7;

import f6.C0966a;
import java.io.FileNotFoundException;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
public abstract class m {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final t f18776a;

    static {
        t tVar;
        try {
            Class.forName("java.nio.file.Files");
            tVar = new u();
        } catch (ClassNotFoundException unused) {
            tVar = new t();
        }
        f18776a = tVar;
        String str = x.f18797r;
        String property = System.getProperty("java.io.tmpdir");
        P6.g.d(property, "getProperty(...)");
        d3.C.j(property, false);
        ClassLoader classLoader = y7.e.class.getClassLoader();
        P6.g.d(classLoader, "getClassLoader(...)");
        new y7.e(classLoader);
    }

    public final void a(x xVar) {
        B6.i<x> iVar = new B6.i();
        while (xVar != null && !e(xVar)) {
            iVar.addFirst(xVar);
            xVar = xVar.c();
        }
        for (x xVar2 : iVar) {
            P6.g.e(xVar2, "dir");
            b(xVar2);
        }
    }

    public abstract void b(x xVar);

    public abstract void c(x xVar);

    public final void d(x xVar) {
        P6.g.e(xVar, "path");
        c(xVar);
    }

    public final boolean e(x xVar) {
        P6.g.e(xVar, "path");
        return h(xVar) != null;
    }

    public abstract List f(x xVar);

    public final C0966a g(x xVar) throws FileNotFoundException {
        P6.g.e(xVar, "path");
        C0966a c0966aH = h(xVar);
        if (c0966aH != null) {
            return c0966aH;
        }
        throw new FileNotFoundException("no such file: " + xVar);
    }

    public abstract C0966a h(x xVar);

    public abstract s i(x xVar);

    public abstract F j(x xVar);

    public abstract H k(x xVar);
}
