what-the-bank/sources/o/oSN.java

43 lines
1.2 KiB
Java

package o;
import java.io.Closeable;
import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class oSN {
static final Charset e = Charset.forName("US-ASCII");
static {
Charset.forName("UTF-8");
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void c(File file) throws IOException {
File[] listFiles = file.listFiles();
if (listFiles == null) {
throw new IOException("not a readable directory: ".concat(String.valueOf(file)));
}
for (File file2 : listFiles) {
if (file2.isDirectory()) {
c(file2);
}
if (!file2.delete()) {
throw new IOException("failed to delete file: ".concat(String.valueOf(file2)));
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public static void b(Closeable closeable) {
try {
closeable.close();
} catch (RuntimeException e2) {
throw e2;
} catch (Exception unused) {
}
}
}