get_args: process /data/cache/command
Change-Id: I744cdc5a72f53fd1224de242e30ff261e6104900
diff --git a/partition.cpp b/partition.cpp
index 09b7908..3efa9bf 100755
--- a/partition.cpp
+++ b/partition.cpp
@@ -1,5 +1,5 @@
/*
- Copyright 2013 to 2020 TeamWin
+ Copyright 2013 to 2021 TeamWin
This file is part of TWRP/TeamWin Recovery Project.
TWRP is free software: you can redistribute it and/or modify
@@ -1779,6 +1779,14 @@
return true;
}
+bool TWPartition::Wipe_Data_Cache(void) {
+ if (!Mount(true))
+ return false;
+ gui_msg(Msg("wiping=Wiping {1}")(Mount_Point + "/cache/"));
+ TWFunc::removeDir(Mount_Point + "/cache/", true);
+ return true;
+}
+
bool TWPartition::Can_Repair() {
if (Mount_Read_Only)
return false;