瀏覽代碼

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

huangxiaodong 2 月之前
父節點
當前提交
442bac98e7
共有 1 個文件被更改,包括 6 次插入1 次删除
  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];
 }