O2CleanCache.swift 918 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // O2CleanCache.swift
  3. // O2Platform
  4. //
  5. // Created by 刘振兴 on 2016/10/13.
  6. // Copyright © 2016年 zoneland. All rights reserved.
  7. //
  8. import Foundation
  9. public class O2CleanCache{
  10. // fileprivate static func fileSizeAtPath(filePath:String){
  11. //
  12. // }
  13. //
  14. // public static func folderSizeAtPath(){
  15. // let folderPath = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true).first
  16. // let manager = FileManager.default
  17. // let folderSize:Double = 0.0
  18. // if manager.fileExists(atPath: folderPath!) == true {
  19. // let childFilesEnumerator = manager.subpaths(atPath: folderPath!)
  20. // for fileName in childFilesEnumerator {
  21. // let fileAbsPath = folderPath.
  22. // }
  23. // }
  24. // }
  25. //
  26. // ///清除缓存目录
  27. // public static func cleanCache(completeHandler:()->Void){
  28. //
  29. // }
  30. }