a.smali
.class public Lcom/baidu/userexperience/d/a;
.super Ljava/lang/Object;
# direct methods
.method public static a(Ljava/io/Closeable;)V
.registers 2
if-eqz p0, :cond_5
:try_start_2
invoke-interface {p0}, Ljava/io/Closeable;->close()V
:try_end_5
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_5} :catch_6
:cond_5
:goto_5
return-void
:catch_6
move-exception v0
goto :goto_5
.end method
.method public static a(Ljava/io/File;)V
.registers 1
invoke-virtual {p0}, Ljava/io/File;->delete()Z
return-void
.end method
.method public static a()Z
.registers 2
invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;
move-result-object v0
const-string v1, "mounted"
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
return v0
.end method
.method public static a(Ljava/lang/String;)Z
.registers 2
new-instance v0, Ljava/io/File;
invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-static {v0}, Lcom/baidu/userexperience/d/a;->b(Ljava/io/File;)Z
move-result v0
return v0
.end method
.method public static b()Ljava/lang/String;
.registers 1
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
move-result-object v0
invoke-virtual {v0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static b(Ljava/io/File;)Z
.registers 2
:try_start_0
invoke-virtual {p0}, Ljava/io/File;->exists()Z
move-result v0
if-eqz v0, :cond_f
invoke-virtual {p0}, Ljava/io/File;->isDirectory()Z
move-result v0
if-nez v0, :cond_f
invoke-virtual {p0}, Ljava/io/File;->delete()Z
:cond_f
invoke-virtual {p0}, Ljava/io/File;->exists()Z
move-result v0
if-nez v0, :cond_18
invoke-virtual {p0}, Ljava/io/File;->mkdirs()Z
:try_end_18
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_18} :catch_1a
:cond_18
const/4 v0, 0x1
:goto_19
return v0
:catch_1a
move-exception v0
const/4 v0, 0x0
goto :goto_19
.end method