Browse Source

1.清理缓存删除文件APP目录

huangxiaodong 2 months ago
parent
commit
442bac98e7
1 changed files with 6 additions and 1 deletions
  1. 6 1
      创维盒子/code/mine/mineViewController.m

+ 6 - 1
创维盒子/code/mine/mineViewController.m

@@ -443,7 +443,12 @@
     long audioPlayAllSize = [iTools folderSizeAtPath:audioPlayPath];
     [[NSFileManager defaultManager] removeItemAtPath:audioPlayPath error:nil];
     
-    long curTotolSize = (downLoadingSizeBeforeClear - downLoadingSizeAfterClear) + (vide0AllSizeBeforeClear - vide0AllSizeAfterClear) + imageAllSize + clearTotal + audioPlayAllSize;
+    //清理文件APP
+    NSString *fileAPPPath = kSHPath_FileAPP;
+    long fileAppPathClear = [iTools folderSizeAtPath:fileAPPPath];
+    [[NSFileManager defaultManager] removeItemAtPath:fileAPPPath error:nil];
+    
+    long curTotolSize = (downLoadingSizeBeforeClear - downLoadingSizeAfterClear) + (vide0AllSizeBeforeClear - vide0AllSizeAfterClear) + imageAllSize + clearTotal + audioPlayAllSize + fileAppPathClear;
     
     [self showClearAllTipBy:curTotolSize];
 }