This commit is contained in:
An Bui 2025-01-17 00:10:57 +07:00
parent 3381c503e4
commit 8ca54aa1f5
19 changed files with 455 additions and 143 deletions

View file

@ -538,6 +538,12 @@ public class VectrasApp extends Application {
File _dir = new File(_pathToDelete);
if (_dir.isDirectory()) {
String[] children = _dir.list();
if (children == null) {
Log.e("ERROR", "Deletion failed. " + _dir);
return;
}
for (int i = 0; i < children.length; i++) {
File temp = new File(_dir, children[i]);
deleteDirectory(String.valueOf(temp));