package com.fyber.inneractive.sdk.player.cache; import java.io.Closeable; import java.io.File; import java.io.IOException; import java.nio.charset.Charset; /* loaded from: classes2.dex */ public final class o { public static final Charset a = Charset.forName("US-ASCII"); static { Charset.forName("UTF-8"); } public static void a(File file) throws IOException { File[] listFiles = file.listFiles(); if (listFiles == null) { throw new IOException("not a readable directory: " + file); } for (File file2 : listFiles) { if (file2.isDirectory()) { a(file2); } if (!file2.delete()) { throw new IOException("failed to delete file: " + file2); } } } public static void a(Closeable closeable) { if (closeable != null) { try { closeable.close(); } catch (RuntimeException e) { throw e; } catch (Exception unused) { } } } }