apkfuckery/com.discord/smali_classes2/y/m/d.smali
2020-11-09 19:03:49 +00:00

76 lines
1.5 KiB
Smali

.class public Ly/m/d;
.super Ly/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}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "$this$walkBottomUp"
invoke-static {p0, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Ly/m/b;->e:Ly/m/b;
const-string v1, "$this$walk"
invoke-static {p0, v1}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "direction"
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v1, Ly/m/a;
invoke-direct {v1, p0, v0}, Ly/m/a;-><init>(Ljava/io/File;Ly/m/b;)V
new-instance p0, Ly/m/a$b;
invoke-direct {p0, v1}, Ly/m/a$b;-><init>(Ly/m/a;)V
:goto_0
const/4 v0, 0x1
:goto_1
invoke-virtual {p0}, Ly/i/b;->hasNext()Z
move-result v1
if-eqz v1, :cond_2
invoke-virtual {p0}, Ly/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