// // O2CleanCache.swift // O2Platform // // Created by 刘振兴 on 2016/10/13. // Copyright © 2016年 zoneland. All rights reserved. // import Foundation public class O2CleanCache{ // fileprivate static func fileSizeAtPath(filePath:String){ // // } // // public static func folderSizeAtPath(){ // let folderPath = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true).first // let manager = FileManager.default // let folderSize:Double = 0.0 // if manager.fileExists(atPath: folderPath!) == true { // let childFilesEnumerator = manager.subpaths(atPath: folderPath!) // for fileName in childFilesEnumerator { // let fileAbsPath = folderPath. // } // } // } // // ///清除缓存目录 // public static func cleanCache(completeHandler:()->Void){ // // } }