diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2016-11-08 05:05:58 +0100 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2016-11-30 16:46:01 +0100 |
commit | 93ac7a0bb1ff07f3357009b5198c3b88cc8bbb90 (patch) | |
tree | 2f73b91a3bcf4be0ae9de553e845df8a67e1e51c | |
parent | MD5 verification sanity (diff) | |
download | android_bootable_recovery-93ac7a0bb1ff07f3357009b5198c3b88cc8bbb90.tar android_bootable_recovery-93ac7a0bb1ff07f3357009b5198c3b88cc8bbb90.tar.gz android_bootable_recovery-93ac7a0bb1ff07f3357009b5198c3b88cc8bbb90.tar.bz2 android_bootable_recovery-93ac7a0bb1ff07f3357009b5198c3b88cc8bbb90.tar.lz android_bootable_recovery-93ac7a0bb1ff07f3357009b5198c3b88cc8bbb90.tar.xz android_bootable_recovery-93ac7a0bb1ff07f3357009b5198c3b88cc8bbb90.tar.zst android_bootable_recovery-93ac7a0bb1ff07f3357009b5198c3b88cc8bbb90.zip |
-rw-r--r-- | partition.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/partition.cpp b/partition.cpp index d6cadf902..3f2374a47 100644 --- a/partition.cpp +++ b/partition.cpp @@ -778,6 +778,8 @@ bool TWPartition::Is_Image(string File_System) { } bool TWPartition::Make_Dir(string Path, bool Display_Error) { + if (TWFunc::Get_D_Type_From_Stat(Path) != S_IFDIR) + unlink(Path.c_str()); if (!TWFunc::Path_Exists(Path)) { if (mkdir(Path.c_str(), 0777) == -1) { if (Display_Error) |