mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-30 15:29:51 +00:00
Bread
This commit is contained in:
parent
3381c503e4
commit
8ca54aa1f5
19 changed files with 455 additions and 143 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue