apkfuckery/com.discord/smali_classes2/c0/m/d.smali

77 lines
1.5 KiB
Smali
Raw Normal View History

2020-10-05 23:18:16 +00:00
.class public Lc0/m/d;
.super Lc0/m/c;
.source "Utils.kt"
# direct methods
.method public static final deleteRecursively(Ljava/io/File;)Z
.locals 3
const-string v0, "$this$deleteRecursively"
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "$this$walkBottomUp"
invoke-static {p0, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Lc0/m/b;->e:Lc0/m/b;
const-string v1, "$this$walk"
invoke-static {p0, v1}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "direction"
invoke-static {v0, v1}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v1, Lc0/m/a;
invoke-direct {v1, p0, v0}, Lc0/m/a;-><init>(Ljava/io/File;Lc0/m/b;)V
new-instance p0, Lc0/m/a$b;
invoke-direct {p0, v1}, Lc0/m/a$b;-><init>(Lc0/m/a;)V
:goto_0
const/4 v0, 0x1
:goto_1
invoke-virtual {p0}, Lc0/i/b;->hasNext()Z
move-result v1
if-eqz v1, :cond_2
invoke-virtual {p0}, Lc0/i/b;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/io/File;
invoke-virtual {v1}, Ljava/io/File;->delete()Z
move-result v2
if-nez v2, :cond_0
invoke-virtual {v1}, Ljava/io/File;->exists()Z
move-result v1
if-nez v1, :cond_1
:cond_0
if-eqz v0, :cond_1
goto :goto_0
:cond_1
const/4 v0, 0x0
goto :goto_1
:cond_2
return v0
.end method