Added method for AppUpgrate call to delete AppLevel directory.

This commit is contained in:
mayur nilwant 2024-06-10 06:36:15 -04:00
parent f6acae9afd
commit 522bc5d9cb

View File

@ -106,4 +106,8 @@ public class CachedData: Codable {
private func filePath(forKey key: String) -> URL {
return cacheDirectory.appendingPathComponent("\(key).json")
}
@objc public func removeAllAppLevel() throws {
try FileManager.default.removeItem(at: appLevelCacheDirectory)
}
}