2020-11-13 19:18:44 +00:00
|
|
|
.class public Ly/l/d;
|
|
|
|
.super Ly/l/c;
|
2020-11-12 02:11:44 +00:00
|
|
|
.source "Utils.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static final deleteRecursively(Ljava/io/File;)Z
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-string v0, "$this$deleteRecursively"
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string v0, "$this$walkBottomUp"
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-static {p0, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
sget-object v0, Ly/l/b;->e:Ly/l/b;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string v1, "$this$walk"
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-static {p0, v1}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string v1, "direction"
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-static {v0, v1}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
new-instance v1, Ly/l/a;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-direct {v1, p0, v0}, Ly/l/a;-><init>(Ljava/io/File;Ly/l/b;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
new-instance p0, Ly/l/a$b;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-direct {p0, v1}, Ly/l/a$b;-><init>(Ly/l/a;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_1
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {p0}, Ly/h/b;->hasNext()Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {p0}, Ly/h/b;->next()Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
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
|